Bug 14038 - ClassCastException during JavaReconciling
Summary: ClassCastException during JavaReconciling
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-17 15:25 EDT by Michael Fraenkel CLA
Modified: 2002-04-30 05:47 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Fraenkel CLA 2002-04-17 15:25:58 EDT
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))
Comment 1 Philipe Mulet CLA 2002-04-18 07:29:44 EDT
It was parsing the source you were editing. Do you still have it around, so 
that we could reproduce it ?
Comment 2 Michael Fraenkel CLA 2002-04-18 08:06:01 EDT
I didn't notice the problem until I brought the console window forward.
Comment 3 Philipe Mulet CLA 2002-04-25 04:54:25 EDT
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.
Comment 4 David Audel CLA 2002-04-30 04:43:14 EDT
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
Comment 5 David Audel CLA 2002-04-30 05:47:43 EDT
Fixed.