Bug 63556 - [1.5] Error when creating generic classes specializing distant generic parameters
Summary: [1.5] Error when creating generic classes specializing distant generic parame...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-22 18:00 EDT by Artur Biesiadowski CLA
Modified: 2005-01-11 11:01 EST (History)
0 users

See Also:


Attachments

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