Bug 303480 - [1.5][compiler] CCE: org.eclipse.jdt.internal.compiler.parser.RecoveredBlock cannot be cast to org.eclipse.jdt.internal.compiler.parser.RecoveredType
Summary: [1.5][compiler] CCE: org.eclipse.jdt.internal.compiler.parser.RecoveredBlock ...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.6 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-22 08:40 EST by Anthony Ogier CLA
Modified: 2010-03-08 13:52 EST (History)
1 user (show)

See Also:


Attachments
The java file which cannot be opened by the java editor (1.99 KB, text/plain)
2010-02-22 08:42 EST, Anthony Ogier CLA
no flags Details
The error entry of Eclipse when trying to open the java file (with stackTrace) (8.84 KB, text/plain)
2010-02-22 08:45 EST, Anthony Ogier CLA
no flags Details
The real java file which cannot be opened by the java editor (1.99 KB, text/plain)
2010-02-22 08:53 EST, Anthony Ogier CLA
no flags Details
Proposed fix + regression test (10.25 KB, patch)
2010-02-23 09:52 EST, Olivier Thomann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.