Bug 134118

Summary: [1.5][compiler] 'ambiguous' error on legal static import
Product: [Eclipse Project] JDT Reporter: Chris Longfield <clongfield>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 RC1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Example code
none
Example gzipped tar none

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