Bug 134118 - [1.5][compiler] 'ambiguous' error on legal static import
Summary: [1.5][compiler] 'ambiguous' error on legal static import
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.2 RC1   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-30 12:39 EST by Chris Longfield CLA
Modified: 2006-04-14 04:45 EDT (History)
0 users

See Also:


Attachments
Example code (659 bytes, application/octet-stream)
2006-03-30 12:40 EST, Chris Longfield CLA
no flags Details
Example gzipped tar (659 bytes, application/octet-stream)
2006-03-30 13:33 EST, Chris Longfield CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Longfield CLA 2006-03-30 12:39:56 EST
If interface A defines a constant and subinterface B extends A and an implementation class statically imports both A and B, eclipse marks the constant as ambiguous, even if it is only defined once, in A.
This example does compile under jdk1.5, and appears to be legal.
Comment 1 Chris Longfield CLA 2006-03-30 12:40:56 EST
Created attachment 37339 [details]
Example code

gzipped tar example code
Comment 2 Olivier Thomann CLA 2006-03-30 12:44:04 EST
Class A.java in the attachment seems to be a binary file.
Could you please provide it again?
Thanks.
Comment 3 Kent Johnson CLA 2006-03-30 12:51:44 EST
What build are you using?
Comment 4 Chris Longfield CLA 2006-03-30 13:33:22 EST
Created attachment 37343 [details]
Example gzipped tar 

2nd try
Comment 5 Chris Longfield CLA 2006-03-30 13:34:40 EST
I got this error on 3.2M4 and 3.2M5a. 
Comment 6 Kent Johnson CLA 2006-04-03 14:15:48 EDT
Added StaticImportTest 41
Comment 7 David Audel CLA 2006-04-14 04:45:38 EDT
Verified for 3.2RC1 with build I20060413-1718