Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341012

Summary: @NonNull allows null parameters in org.eclipse.virgo.kernel.osgi project
Product: [RT] Virgo Reporter: Glyn Normington <glyn.normington>
Component: runtimeAssignee: Glyn Normington <glyn.normington>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse
Version: unspecified   
Target Milestone: 3.0.0.M05   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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.