Bug 226145 - [1.5][compiler] Spurious error when using generic interface member of a non-generic interface in a generic class
Summary: [1.5][compiler] Spurious error when using generic interface member of a non-g...
Status: RESOLVED DUPLICATE of bug 220361
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.4 M6   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-08 11:34 EDT by Bryan C. Mills CLA
Modified: 2008-04-09 12:56 EDT (History)
3 users (show)

See Also:


Attachments
Minimal test-case for generic interface bug (323 bytes, text/x-java)
2008-04-08 11:34 EDT, Bryan C. Mills CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan C. Mills CLA 2008-04-08 11:34:23 EDT
Created attachment 95221 [details]
Minimal test-case for generic interface bug

Build ID: M20080221-1800

Steps To Reproduce:
Open example file (to be attached) in Eclipse editor.  The editor shows a red underline at line 10 with the following tooltip:

The member type EclipseGenericBug.ParametricClass<T>.NonParametricInterface.ParametricInterface cannot be qualified with a parameterized type, since it is static. Remove arguments from qualifying type EclipseGenericBug.ParametricClass<T>.NonParametricInterface

This error seems bogus, and Sun's javac (1.5.0.0_07) compiles the file without any errors.

More information:
Comment 1 Philipe Mulet CLA 2008-04-09 07:23:55 EDT
This is a dup of bug 220361.
Added GenericTypeTest#test1309

*** This bug has been marked as a duplicate of bug 220361 ***
Comment 2 Philipe Mulet CLA 2008-04-09 07:27:45 EDT
Jerome - we may want to post a post 3.3.2 patch on jdtcore update area.
Comment 3 Jerome Lanneluc CLA 2008-04-09 12:56:04 EDT
(In reply to comment #2)
> Jerome - we may want to post a post 3.3.2 patch on jdtcore update area.
> 
A patch with this fix is now available at http://www.eclipse.org/jdt/core/r3.3/index.php#UPDATES