Summary: | [model] Wrong Project for Java-Element | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Heywinkel <klaus.heywinkel> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | daniel_megert, frederic_fusier, markus.kell.r |
Version: | 3.1.2 | ||
Target Milestone: | 3.3 RC4 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Heywinkel
2006-10-24 02:36:43 EDT
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. |