Community
Participate
Working Groups
In the case that more than one Project reference the same jar-File, the Project for each Java-Element (e.g. IType) out of this jar-File (taken from the Types-View) seems to be the same, regardless of the Selection in the Project- and Package-View. I think the Types-View should take these selection into account.
Move to JDT/UI
Moving back to core. This is a model problem. Import org.junit as binary plug-in. Create a second project org.junit.number2 and add org.junit/junit.jar to build path. Now look at the JarPackageFragmentRoot 'org.junit/junit.jar' (e.g. with the JavaElement view from http://www.eclipse.org/jdt/ui/update-site): - It has children (e.g. JarPackageFragment 'junit.framework') that answer org.junit.number2 on getJavaProject(); expected: org.junit. - The getParent() of these children is a JarPackageFragmentRoot with handleIdentifier '=org.junit.number2/\/org.junit\/junit.jar'. This parent thinks it is Object#equals(..) to the original JarPackageFragmentRoot with handleIdentifier '=org.junit/junit.jar'
Reproduced with 3.3 RC4
Known limitation of the Java model. No action planned.
*** This bug has been marked as a duplicate of bug 39468 ***