Bug 96085 - [1.5][compiler] problems with inner classes and generics
Summary: [1.5][compiler] problems with inner classes and generics
Status: CLOSED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 3.1 RC2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-20 07:52 EDT by Kasper Nielsen CLA
Modified: 2005-06-10 10:41 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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