Bug 44149 - ClassCastException on compiler error
Summary: ClassCastException on compiler error
Status: RESOLVED DUPLICATE of bug 45663
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.1.1   Edit
Hardware: PC Windows XP
: P4 normal (vote)
Target Milestone: 1.2 M1   Edit
Assignee: Jim Hugunin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-03 14:41 EDT by Ron Bodkin CLA
Modified: 2004-01-12 05:39 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ron Bodkin CLA 2003-10-03 14:41:28 EDT
Using Eclipse 2.1.1...

java.lang.ClassCastException
	at 
org.eclipse.jdt.internal.compiler.parser.RecoveredMethod.updateFromParserState
(RecoveredMethod.java:357)
	at org.eclipse.jdt.internal.compiler.parser.Parser.updateRecoveryState
(Parser.java:7704)
	at org.eclipse.jdt.internal.compiler.parser.Parser.resumeOnSyntaxError
(Parser.java:7651)
	at org.eclipse.jdt.internal.compiler.parser.Parser.parse
(Parser.java:6893)
	at org.eclipse.jdt.internal.compiler.parser.Parser.parse
(Parser.java:7110)
	at 
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.parseStatements
(MethodDeclaration.java:95)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.parseMethod
(TypeDeclaration.java:738)
	at org.eclipse.jdt.internal.compiler.Compiler.getMethodBodies
(Compiler.java:391)
	at org.eclipse.jdt.internal.compiler.Compiler.process
(Compiler.java:527)
	at org.aspectj.ajdt.internal.compiler.AjCompiler.process
(AjCompiler.java:65)
	at org.eclipse.jdt.internal.compiler.Compiler.compile
(Compiler.java:338)
	at 
org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation
(AjBuildManager.java:373)
	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild
(AjBuildManager.java:138)
	at 
org.aspectj.ajdt.internal.core.builder.AjBuildManager.incrementalBuild
(AjBuildManager.java:77)
	at org.aspectj.ajde.internal.CompilerAdapter.compile
(CompilerAdapter.java:98)
	at org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread.run
(AspectJBuildManager.java:165)
Comment 1 Mik Kersten CLA 2003-10-16 11:32:17 EDT
This is a bug in the compiler.  Since the report has no indication of what 
caused the failure I'm marking it down to P4 for now.

Jim, I believe that you're still offically owner of the parser, but let me 
know if that's not the case.
Comment 2 Jim Hugunin CLA 2004-01-12 05:39:25 EST
The referenced bug includes a self-contained test case for what appears to be 
the same bug.

*** This bug has been marked as a duplicate of 45663 ***