Community
Participate
Working Groups
Using I20060110-1026 Search for References of org.eclipse.swt.events.MouseAdapter. The first hit in the list is the org.eclipse.jface.contentassist package, expand it. Notice there is a hit named 'new Anonymous' that has no icon next to it. Either an icon is missing for this type or this hit should not be in the list. Another odd thing about this hit is, when I double click on it to open the file, I get a .class file editor but the file has no name (just .class) and a message that says: Source not found The JAR of this class file belongs to the container 'Plug-in Dependencies'/ To configure the source attachment, go directly to the corresponding configuration page. (For example for JREs go to 'Installed JREs' page in preferences).
Created attachment 32940 [details] screen shot of problem
Reproduced with 20060110-1026 binaries: The problematic element is a type from a binary where jdt.core can't build a element info for (see screenshot). Each access to it throws a JavaModelException e.g. Java Model Exception: Java Model Status ['' is not a valid Java identifier] at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:492) at org.eclipse.jdt.internal.core.ClassFile.buildStructure(ClassFile.java:86) at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:235) at org.eclipse.jdt.internal.core.BinaryMember.generateInfos(BinaryMember.java:47) at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:503) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:247) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:233) at org.eclipse.jdt.internal.core.BinaryType.isInterface(BinaryType.java:707)
Created attachment 39540 [details] Patch to fix this problem No test case added in this fix, just verified that it solves the problem and passes all JDT/Core Model tests...
Not critical, defer patch release for next release
Will be reopened for 3.3...
I've now some tests to verify this fix, ready to be released when 3.3 stream will be available...
Created attachment 41284 [details] Complete patch (fix+tests) for bugs 95152, 123679 and 140156 The attached zip file includes patches for bug 95152, bug 123679 and bug 140156. It also includes some jar files for binary test cases...
Candidate for 3.2.1 Released in TARGET_321 stream.
Released for 3.2.1 Released for 3.3 M1 while merging TARGET_321 with HEAD
Verified for 3.3 M1 using build I20060804-0010. (Based upon the test case behavior with 3.2 vs current version of org.eclipse.jdt.core.)
Verified for 3.2.1 using build M20060908-1655.