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

Bug 346537

Summary: weaving hooks that add dynamic imports do not reflect in the BundleWiring API until resolution
Product: [Eclipse Project] Equinox Reporter: Thomas Watson <tjwatson>
Component: FrameworkAssignee: Thomas Watson <tjwatson>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 3.7   
Target Milestone: Juno M1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
fix none

Description Thomas Watson CLA 2011-05-19 16:22:24 EDT
Weaving hooks can add dynamic imports while weaving a class.  The added dynamic imports are supposed to show up in the BundleWiring.getRequirements results as before the class is defined.  In equinox they will not show up until after the dynamic import is resolved.  This has no ill effects at runtime because the dynamic import is actually present, but we are not accurately reflecting it in the BundleWiring implementation until after it has been resolved.
Comment 1 Thomas Watson CLA 2011-05-19 16:22:58 EDT
Not important enough to consider for 3.7.1.  Marking for 3.8.
Comment 2 Thomas Watson CLA 2011-06-08 11:28:45 EDT
Move all 3.8 bugs to Juno.
Comment 3 Thomas Watson CLA 2011-06-08 14:09:08 EDT
Created attachment 197626 [details]
fix

This fix looks in the dynamically added imports also.
Comment 4 Thomas Watson CLA 2011-06-08 14:10:20 EDT
Fixed released to HEAD.