Bug 131028 - [1.5][compiler] Doubly-nested inner classes with generics fail to compile
Summary: [1.5][compiler] Doubly-nested inner classes with generics fail to compile
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.2 M6   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-08 23:13 EST by Jesse Wilson CLA
Modified: 2006-03-09 17:57 EST (History)
0 users

See Also:


Attachments
Doesn't compile under Eclipse, but compiles fine under javac (552 bytes, text/plain)
2006-03-08 23:14 EST, Jesse Wilson CLA
no flags Details
Screenshot of Eclipse showing syntax error (137.61 KB, image/png)
2006-03-09 11:38 EST, Jesse Wilson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Wilson CLA 2006-03-08 23:13:25 EST
The attached file compiles under javac but fails to in Eclipse. It's a bug in the Eclipse compiler since moving the static inner class out causes the file to compile again.
Comment 1 Jesse Wilson CLA 2006-03-08 23:14:31 EST
Created attachment 35954 [details]
Doesn't compile under Eclipse, but compiles fine under javac
Comment 2 Olivier Thomann CLA 2006-03-09 10:53:29 EST
What is your error?
It compiles fine with the HEAD contents.
Comment 3 Olivier Thomann CLA 2006-03-09 10:53:57 EST
Please specify your build id?
Comment 4 Jesse Wilson CLA 2006-03-09 11:38:32 EST
Created attachment 35990 [details]
Screenshot of Eclipse showing syntax error

A screenshot showing how Eclipse highlights a syntax problem that shouldn't really be a problem.
Comment 5 Jesse Wilson CLA 2006-03-09 11:40:08 EST
I'm on this build:
Version: 3.1.2
Build id: M20060118-1600

Perhaps I mispoke, this may only be a problem in the 'incremental compiler', I've attached a screenshot to show exactly what's going on.
Comment 6 Olivier Thomann CLA 2006-03-09 11:41:04 EST
As I said, this is fixed in HEAD.
I'll try to reproduce with 3.1 maintenance stream.
Comment 7 Philipe Mulet CLA 2006-03-09 17:49:10 EST
This issue got resolved during 3.2m4.
Comment 8 Philipe Mulet CLA 2006-03-09 17:57:38 EST
Added GenericTypeTest#test0956.
Closing