Bug 96085

Summary: [1.5][compiler] problems with inner classes and generics
Product: [Eclipse Project] JDT Reporter: Kasper Nielsen <news>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kasper Nielsen CLA 2005-05-20 07:52:03 EDT
3 seperate files fails with The Constructor P2(P.A) is undefined and cannot
convert from P2 to P.A.  replacing P<V> with P solves the problems

interface P<V> {
    interface A {}
}

class P2 implements P.A {
    P2(P.A problem) {}
}

class P3 {
    void test() {P.A o = new P2((P.A) null);}
}
Comment 1 Philipe Mulet CLA 2005-05-20 08:04:53 EDT
What build are you using ?
Comment 2 Kasper Nielsen CLA 2005-05-20 09:34:09 EDT
(In reply to comment #1)
> What build are you using ?

Sorry, latest milestone I20050513-1415

although I've had problems with inner classes when parent class is parameterized
ever since the first nightly builds with generic support.
Comment 3 Philipe Mulet CLA 2005-06-01 16:12:01 EDT
Reproduced when compiling incrementally P3 against binaries for P & P2.
Comment 4 Philipe Mulet CLA 2005-06-02 17:07:07 EDT
Raw conversion was not properly performed when decoding binary signature. It did
not support case of a non generic member of a raw type.
Added GenericTypeTest#test683.
Fixed
Comment 5 Frederic Fusier CLA 2005-06-07 09:46:29 EDT
Verified for 3.1 RC2 using build N20050607-0010 +JDT/Core HEAD
Comment 6 Jerome Lanneluc CLA 2005-06-10 10:41:30 EDT
Verified with I20050610-0010