Bug 85933

Summary: Type parameters in anonymous type is missing
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Olivier Thomann CLA 2005-02-20 21:47:42 EST
Using HEAD, the following code doesn't compile. The parser is losing the
Exception type parameters for the M type.

public class X { 
    public static void main(String argv[]) {
		
		new X().new M<Exception>(null) {
			void run() {
				Exception e = ex;
				System.out.println("SUCCESS");
			}
		}.run();
    }
    class M<E extends Throwable> {
        E ex;
        M(E ex) {
            this.ex = ex;
        }
    }
}
Comment 1 Olivier Thomann CLA 2005-02-20 21:49:34 EST
Fixed and released in HEAD.
Regression test added in GenericTypeTest.test512.
Comment 2 Olivier Thomann CLA 2005-03-30 22:59:09 EST
Verified in 20050330-0500