Bug 303480

Summary: [1.5][compiler] CCE: org.eclipse.jdt.internal.compiler.parser.RecoveredBlock cannot be cast to org.eclipse.jdt.internal.compiler.parser.RecoveredType
Product: [Eclipse Project] JDT Reporter: Anthony Ogier <netangel+eclipse>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 3.6   
Target Milestone: 3.6 M6   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
The java file which cannot be opened by the java editor
none
The error entry of Eclipse when trying to open the java file (with stackTrace)
none
The real java file which cannot be opened by the java editor
none
Proposed fix + regression test none

Description Anthony Ogier CLA 2010-02-22 08:40:35 EST
Build Identifier: M20090917-0800

The eclipse Java Editor cannot open the specific attached java file which compiles correctly with javac.

Reproducible: Always

Steps to Reproduce:
1. Create an empty java project
2. Create the attached TestBug.java file in the default package
3. Save
Comment 1 Anthony Ogier CLA 2010-02-22 08:42:29 EST
Created attachment 159780 [details]
The java file which cannot be opened by the java editor
Comment 2 Anthony Ogier CLA 2010-02-22 08:45:19 EST
Created attachment 159782 [details]
The error entry of Eclipse when trying to open the java file (with stackTrace)
Comment 3 Anthony Ogier CLA 2010-02-22 08:53:07 EST
Created attachment 159783 [details]
The real java file which cannot be opened by the java editor

Actually it is when there is a missing ">" on line 25 that I have the error
Comment 4 Olivier Thomann CLA 2010-02-23 09:52:29 EST
Created attachment 159926 [details]
Proposed fix + regression test
Comment 5 Olivier Thomann CLA 2010-02-23 13:29:37 EST
Released for 3.6M6.
Added regression test:
org.eclipse.jdt.core.tests.compiler.parser.SourceElementParserTest#test81
Comment 6 Frederic Fusier CLA 2010-03-08 13:51:43 EST
Verified for 3.6M6 using build  I20100307-2000.