Bug 69800

Summary: [1.5] eclipse fails to report incompatible types
Product: [Eclipse Project] JDT Reporter: Igor Fedorenko <igor>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Igor Fedorenko CLA 2004-07-11 14:04:03 EDT
The following code compiles by cheetah from CVS as of few minutes ago, but not
by javac as of SUN JDK 1.5.0 beta3 build 57. I agree with javac on this one as
not all subclasses of Object are assignable to A ;-)


========================================
package test.cheetah;
public class IncompatibleType {
    static class A {
    }
    A test() throws Exception {
        Class<? extends Object> clazz = null;
        return clazz.newInstance();
    }
}
========================================
Comment 1 Philipe Mulet CLA 2004-07-19 18:52:03 EDT
Tuned wildcard compatibility rules.
Added regression test: GenericTypeTest#test251

Fixed.