Community
Participate
Working Groups
0416 Win32 (M5) Not sure what I did. java.lang.ClassCastException at org.eclipse.jdt.internal.compiler.parser.Parser.consumeMethodHeaderPa rameters(Parser.java(Compiled Code)) at org.eclipse.jdt.internal.compiler.parser.RecoveredMethod.updateFromPa rserState(RecoveredMethod.java(Compiled Code)) at org.eclipse.jdt.internal.compiler.parser.Parser.updateRecoveryState (P arser.java(Compiled Code)) at org.eclipse.jdt.internal.compiler.parser.Parser.resumeOnSyntaxError (P arser.java(Compiled Code)) at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java (Com piled Code)) at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java (Com piled Code)) at org.eclipse.jdt.internal.compiler.SourceElementParser.parseCompilatio nUnit(SourceElementParser.java:1028) at org.eclipse.jdt.internal.core.CompilationUnit.generateInfos (Compilati onUnit.java:302) at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure (Compilat ionUnit.java(Compiled Code)) at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent (Compilat ionUnit.java:629) at org.eclipse.jdt.internal.core.WorkingCopy.reconcile (WorkingCopy.java: 330) at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconci le(JavaReconcilingStrategy.java:62) at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconci le(JavaReconcilingStrategy.java:80) at org.eclipse.jface.text.reconciler.MonoReconciler.process (MonoReconcil er.java:66) at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread .run(AbstractReconciler.java(Compiled Code))
It was parsing the source you were editing. Do you still have it around, so that we could reproduce it ?
I didn't notice the problem until I brought the console window forward.
David - please try to reproduce. It is a scenario where the list length is greater than zero thus fooling the recovery into thinking there are some arguments to reduce.
Step to reproduce : 1) Create this class public class X { void foo(int x, int y, void 2) Append <space>z The result is the following text and a ClassCastException public class X { void foo(int x, int y, void z
Fixed.