Bug 216705 - [1.5][compiler] Typing issues with inner class
Summary: [1.5][compiler] Typing issues with inner class
Status: VERIFIED DUPLICATE of bug 216565
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-27 13:33 EST by Olivier Lefevre CLA
Modified: 2008-02-04 06:37 EST (History)
2 users (show)

See Also:


Attachments
The test case. (467 bytes, text/plain)
2008-01-27 13:33 EST, Olivier Lefevre CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Lefevre CLA 2008-01-27 13:33:08 EST
Trying to compile the attached code yields:
--------------------------------------------------------------------------
1. ERROR in Bug7.java (at line 19)
        protected List<Bar<? extends SubFoo>> get() { return null; }
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
The return type is incompatible with Bug7.AbstractTest<Bug7.SubFoo>.get()
--------------------------------------------------------------------------
which intuitively should not be an issue. javac accepts this code and
the problem goes away if Bar is promoted from an inner class of 
AbstractTest to a stand-alone class at the same level as the others.
Comment 1 Olivier Lefevre CLA 2008-01-27 13:33:39 EST
Created attachment 87975 [details]
The test case.
Comment 2 Philipe Mulet CLA 2008-01-28 12:30:55 EST
This is another symptom of bug 216565.

*** This bug has been marked as a duplicate of bug 216565 ***
Comment 3 Philipe Mulet CLA 2008-01-28 12:31:22 EST
Added GenericTypeTest#test1267
Comment 4 Eric Jodet CLA 2008-02-04 06:37:43 EST
Verified for 3.4M5 using build I20080204-0010