Bug 70295 - [1.5] method(Class<?>) is not applicable for Class<? extends Object>
Summary: [1.5] method(Class<?>) is not applicable for Class<? extends Object>
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-17 23:24 EDT by Igor Fedorenko CLA
Modified: 2005-01-11 11:02 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 Igor Fedorenko CLA 2004-07-17 23:24:40 EDT
The following code is rejected by cheetah (from cvs as of few minutes ago) and
compiles by SUN JDK 1.5.0 beta3 b57. Cheetah error message: The method
isAssignableFrom(Class<?>) in the type Class<AssignableFrom> is not applicable
for the arguments (Class<? extends Object>)

=======================================
package test.cheetah;
public class AssignableFrom {
    void test(Object o) {
        AssignableFrom.class.isAssignableFrom(o.getClass());
    }
}
=======================================

PS: I was not purposely looking for bugs, I swear ;-)
Comment 1 Philipe Mulet CLA 2004-07-19 18:54:51 EDT
Class<? extends Object> should be compatible with Class<?>.
Added regression test: GenericTypeTest#test250

Fixed