Summary: | Error 'Requesting Java AST from selection': Bug in the Java AST parser | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Reinier Zwitserloot <rz_eclipse.org> | ||||||||
Component: | Core | Assignee: | Kent Johnson <kent_johnson> | ||||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||||
Severity: | normal | ||||||||||
Priority: | P3 | ||||||||||
Version: | 3.1 | ||||||||||
Target Milestone: | 3.1 M6 | ||||||||||
Hardware: | PC | ||||||||||
OS: | Windows XP | ||||||||||
Whiteboard: | |||||||||||
Attachments: |
|
Description
Reinier Zwitserloot
2005-03-14 00:38:39 EST
Created attachment 18757 [details]
The test case (also found in the first comment).
Created attachment 18758 [details]
My eclipse settings (project uses 'default' settings).
These are the settings of my eclipse. The project uses all 'default' settings.
As the settings, especially 'Java, Compiler' have marked effects on at least
the outlook of the editor (what's a warning, what's an error, etcetera), this
may be useful for trying to reproduce the bug.
AccTransient is the same value than AccVarArgs. A method cannot be transient. We should not preserve the AccTransient modifier. The illegal modifier for method is properly handled, but the code blows up when we try to generate the method. java.lang.ArrayIndexOutOfBoundsException: -1 at org.eclipse.jdt.internal.compiler.ast.Statement.generateArguments(Statement.java:59) at org.eclipse.jdt.internal.compiler.ast.AllocationExpression.generateCode(AllocationExpression.java:115) at org.eclipse.jdt.internal.compiler.ast.LocalDeclaration.generateCode(LocalDeclaration.java:106) at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:218) at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:165) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:562) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:616) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:182) at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:516) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:335) at org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Main.java:2388) at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1112) at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1009) at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1001) at org.eclipse.jdt.core.tools.compiler.Compile.main(Compile.java:19) Created attachment 18761 [details]
Test case ready to compile
Added Varargs test027 to detect for collision case. Verified in 20050330-0500 |