Bug 63556

Summary: [1.5] Error when creating generic classes specializing distant generic parameters
Product: [Eclipse Project] JDT Reporter: Artur Biesiadowski <abies>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Artur Biesiadowski CLA 2004-05-22 18:00:05 EDT
class Alpha<A,B,C extends java.util.List<A>> {}

Under jdk1.5.0b1 this class compiles correctly. Under cheetah 0.5 it gives
following error:
"A cannot be resolved to a type"
This happens only if there is a extra parameter between specialized type and
originating type - for example, in above case, following versions will work
correctly under cheetah:
class Alpha<A,C extends java.util.List<A>,B> {}
class Alpha<B,A,C extends java.util.List<A>> {}
Comment 1 Philipe Mulet CLA 2004-05-23 18:04:29 EDT
Added regression test GenericTypeTest#test209.
Problem is in parser, which omits first type parameter declaration 'A' in 
constructed AST.

Comment 2 Olivier Thomann CLA 2004-05-24 12:37:40 EDT
Fixed and released in 1.5 stream.
Reenabled the test 209.