Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341012 - @NonNull allows null parameters in org.eclipse.virgo.kernel.osgi project
Summary: @NonNull allows null parameters in org.eclipse.virgo.kernel.osgi project
Status: CLOSED FIXED
Alias: None
Product: Virgo
Classification: RT
Component: runtime (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.0.0.M05   Edit
Assignee: Glyn Normington CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-25 17:35 EDT by Glyn Normington CLA
Modified: 2011-05-26 10:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Glyn Normington CLA 2011-03-25 17:35:19 EDT
This showed up in BundleIdBasedRegionTests. If a BundleIdBasedRegion is constructed with a null bundle context parameter, then no exception is thrown.

Presumably the project is not being woven correctly.
Comment 1 Glyn Normington CLA 2011-05-16 11:31:14 EDT
BundleIdBasedRegionTests isn't an integration test, so the @NonNull will go nowhere fast.
Comment 2 Glyn Normington CLA 2011-05-17 05:15:34 EDT
Ignore comment 1.
Comment 3 Glyn Normington CLA 2011-05-17 11:45:17 EDT
The problem was that the project was not being woven with the NonNullAssertionEnforcer aspect from kernel core.

Fixed the project setup in kernel commit ee698a1472a062346289d2e812cf35c2207a3e5a.

Also added a test so the tests will fail if the project setup goes wrong in the future.