Bug 78140 - [1.5][compiler] Unchecked conversion warning when overriding a generic method
Summary: [1.5][compiler] Unchecked conversion warning when overriding a generic method
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: Other All
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 78285 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-09 02:34 EST by Ruud Diterwich CLA
Modified: 2004-12-14 11:07 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruud Diterwich CLA 2004-11-09 02:34:34 EST
Can't override a generic method without a uncheck conversion warning. The 
following code results in a warning on B.get(). Jdk 1.5.0-b64 accepts the 
code. 
 
public class GenericsTests { 
    class A { 
        <T> T get() { return null; } 
    } 
     
    class B extends A { 
        <T> T get() { return null; } 
    } 
}
Comment 1 Frederic Fusier CLA 2004-11-12 06:58:33 EST
*** Bug 78285 has been marked as a duplicate of this bug. ***
Comment 2 Kent Johnson CLA 2004-11-16 15:33:23 EST
Added MethodVerify test 19
Comment 3 Olivier Thomann CLA 2004-12-14 11:07:13 EST
Verified in 200412140800