Community
Participate
Working Groups
200408170800 In a project with Sun JRE 1.5.0-beta3-b62, open editor for annotation "java.lang.SuppressWarnings". => "Errors Running Operation" dialog: !ENTRY org.eclipse.core.runtime 4 2 Aug 19, 2004 11:03:16.398 !MESSAGE An internal error occurred during: "Java AST creation". !STACK 0 java.lang.IllegalArgumentException at org.eclipse.jdt.core.dom.SingleMemberAnnotation.setValue(SingleMemberAnnotation.java:211) at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2249) at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:835) at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:4161) at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:4106) at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:740) at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2479) at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1271) at org.eclipse.jdt.core.dom.ASTParser.convert(ASTParser.java:711) at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:682) at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:574) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.createAST(ASTProvider.java:441) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.getAST(ASTProvider.java:393) at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:159) at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$3.run(SelectionListenerWithASTManager.java:136) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
Reproduced. I missed the conversion of MemberValueArrayInitializer. It is now converted to an array initializer. I removed the node type MemberValueArrayInitializer and I am now simply using an array initializer.
Fixed and released in HEAD. Regression test added.
*** Bug 72477 has been marked as a duplicate of this bug. ***
Verified in I200409212000.