Bug 219232 - [Compiler] Search for classes in other containers if access rules shadow a class
Summary: [Compiler] Search for classes in other containers if access rules shadow a class
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-16 11:42 EST by Danail Nachev CLA
Modified: 2008-05-02 12:24 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 Danail Nachev CLA 2008-02-16 11:42:12 EST
I have the following configuration:

1. A bundle which requires org.w3c.dom package
2. The package is available in both the JRE container and the Plug-in Dependencies container
3. The used Bundle-RequiredExecutionEnvironment is set to J2SE-1.3

What's happening is that the system packages doesn't contain org.w3c.dom for J2SE-1.3, so there is a restrictive rule for org.w3c.dom. The package is also available in one of the plugins in Plug-in Dependencies container, however it isn't searched.

When the order of the containers is switched, the plugin compiles fine.

The request is that, JDT should try to find the class in the other classpath containers when a access rule shadows the class.
Comment 1 Jerome Lanneluc CLA 2008-02-29 09:33:25 EST
The support is there at the JDT/Core level (see IAccessRule.IGNORE_IF_BETTER). 
Moving to JDT/Debug to decide whether this flag should be used on the JRE container in combination with the K_NON_ACCESSIBLE flag.
Comment 2 Darin Wright CLA 2008-05-02 12:24:50 EDT
Marking assigned for consideration post 3.4