Summary: | JME on code assist | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Martin Aeschlimann <martinae> | ||||||
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | CC: | markus.kell.r, teicher-bugzilla | ||||||
Version: | 3.1 | ||||||||
Target Milestone: | 3.1.1 | ||||||||
Hardware: | PC | ||||||||
OS: | Windows XP | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Martin Aeschlimann
2005-06-22 07:11:43 EDT
this bug is not always reproducable. It seem that the Java model is in a certain state, where the element infos can't be found. I had it working on a new workspace, but after changing to Object o= new ArrayList(); Object t= new List The problem was there again. To get it again, I also removed the import for java.util.List I cannot reproduce with N20050622 + latest JDT Core still reproducable in 20050623-0010 - start with new workspace (runs on JRE 1.5.0_03) - open preference page: (JRE 1.5.0_03) was detected - set the workspace compiler compliance to 5.0 - enable 'fill argument names..' on Java > Editor > Code Assist - ok (full build yes (of course useless) - create project 'Test' - create type 'E' in test - paste code from comment 0 - code assist, works (<E> added), complete to new ArrayList<E>(); - type Object x= new Li code assist, select java.util.List - no <E>, Exception in log !SESSION 2005-06-23 12:50:49.962 ----------------------------------------------- eclipse.buildId=N20050623-0010 java.version=1.5.0_03 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_CH Framework arguments: -application org.eclipse.ui.ide.workbench -update -showlocation Command-line arguments: -ws win32 -application org.eclipse.ui.ide.workbench -update -debug -showlocation -data d:\eclipse-testpass3 !ENTRY org.eclipse.jdt.ui 4 10001 2005-06-23 12:52:20.791 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [<E> [in List [in List.class [in java.util [in C:\devel\jdk1.5.0_03\jre\lib\rt.jar [in Test]]]]] does not exist] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:468) at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:499) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:232) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:218) at org.eclipse.jdt.internal.core.TypeParameter.getBounds(TypeParameter.java:36) at org.eclipse.jdt.internal.ui.text.java.GenericJavaTypeProposal.computeTypeProposal(GenericJavaTypeProposal.java:367) Reproduced. This happens when a binary type parameter is opened but its parent has not been opened yet. Created attachment 26308 [details]
Fix
Created attachment 26309 [details]
Regression test
+1 for 3.1.1 Released fix and regression test in both HEAD and R3_1_maintenance branch. Verified in I20050920-0010 for 3.2M2 Verified for 3.1.1 using M20050923-1430. |