Bug 125445 - [1.5][compiler] Additional bounds while first one is type parameter: JDK 1.50_05 compiles but Eclipse 3.1.2 does not
Summary: [1.5][compiler] Additional bounds while first one is type parameter: JDK 1.50...
Status: RESOLVED DUPLICATE of bug 106466
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-27 04:12 EST by Volker Renneberg CLA
Modified: 2006-01-27 11:56 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 Volker Renneberg CLA 2006-01-27 04:12:56 EST
The following code does not compile in Eclipse 3.1.2 (cannot select version in field above) but it compiles in JDK 1.5.0_05:

public static <C extends Number, A extends C & Comparable<C>> int m(A comparableNumberObj) {
   return comparableNumberObj.compareTo(comparableNumberObj);
}

ciao
Volker
Comment 1 Philipe Mulet CLA 2006-01-27 11:39:22 EST
Correction: it was accepted in 3.1.1, and is now rejected in 3.1.2 as we do in 3.2 stream.
Comment 2 Philipe Mulet CLA 2006-01-27 11:42:55 EST

*** This bug has been marked as a duplicate of 106466 ***
Comment 3 Philipe Mulet CLA 2006-01-27 11:56:22 EST
Added GenericTypeTest#test885