Bug 207433 - [1.5][compiler] Unable to resolve static import
Summary: [1.5][compiler] Unable to resolve static import
Status: VERIFIED DUPLICATE of bug 193210
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.3.2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-25 07:54 EDT by Philipe Mulet CLA
Modified: 2008-09-16 09:52 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2007-10-25 07:54:27 EDT
Build 3.3.1

The following 3 files example doesn't compile clean, where it should:
----------
1. ERROR in p\X.java (at line 2)
	import static r.Y.Z;
	              ^^^^^
The import r.Y.Z cannot be resolved
----------

p/X.java [
package p;
import static r.Y.Z;
import q.*;
public class X<T> extends Z<T> {
   Z<T> getZ() { return null; } 
	void bar() {
		System.out.println(getZ().value);
	}
}

]
q/Z.java [
package q;
import r.Y;
public class Z<T> extends Y<T> {
}



]
r/Y.java [
package r;
public class Y<T> {
	public static String foo;
	public String value;
	public static String Z;
}

]
Comment 1 Philipe Mulet CLA 2007-10-25 07:54:55 EDT
Added StaticImportTest#test051
Comment 2 Philipe Mulet CLA 2007-10-25 08:03:01 EDT
Actually, this is another symptom of bug 193210
Comment 3 Philipe Mulet CLA 2007-10-25 09:50:34 EDT

*** This bug has been marked as a duplicate of bug 193210 ***
Comment 4 Maxime Daniel CLA 2007-10-29 09:51:14 EDT
Aligned the target with the one of the dupe.

Verified for 3.4 M3 using build I20071029-0010.
Comment 5 David Audel CLA 2008-01-24 04:51:42 EST
Verified for 3.3.2 using M20080123-0800 build