Bug 131028

Summary: [1.5][compiler] Doubly-nested inner classes with generics fail to compile
Product: [Eclipse Project] JDT Reporter: Jesse Wilson <jwilson>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M6   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Doesn't compile under Eclipse, but compiles fine under javac
none
Screenshot of Eclipse showing syntax error none

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