Community
Participate
Working Groups
I20060810-1230 I got the following exception while editing java source code: An internal error occurred during: "Requesting Java AST from selection". java.lang.IllegalArgumentException at org.eclipse.jdt.core.dom.SimpleName.setIdentifier(SimpleName.java:193) at org.eclipse.jdt.core.dom.AST.newSimpleName(AST.java:1251) at org.eclipse.jdt.internal.ui.search.MethodExitsFinder.markReferences(MethodExitsFinder.java:129) at org.eclipse.jdt.internal.ui.search.MethodExitsFinder.perform(MethodExitsFinder.java:95) at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.updateOccurrenceAnnotations(JavaEditor.java:3060) at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor$7.selectionChanged(JavaEditor.java:3125) at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:163) at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$3.run(SelectionListenerWithASTManager.java:140) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
This is very strange as that line is SimpleName name= fAST.newSimpleName("x"); //$NON-NLS-1$ and 'x' is a valid name. Do you have this reproducable and can see in the debugger whats happening? jdt.core uses the scanner on the string and test if the returned token is an identifier
Sorry, I can't reproduce it. It did happen only once while I did normal java source editing. Very strange indeed, I guess it is a concurency issue with the scanner retrieved by this.ast.scanner on line 178?
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.