Community
Participate
Working Groups
build I20050509-2010 1) create QQType1.java package pkgstaticimport; public class QQType1 { public class Inner1 {} public static class Inner2 {} protected class Inner3 {} protected static class Inner4 {} private class Inner5 {} private static class Inner6 {} class Inner7 {} static class Inner8 {} } 2) create Test.java package a; import static pkgstaticimport.QQType1.*; public class Test { void foo() { Inner1 i; Inner2 j; } } 3) compile no errors but javac does not accept this code a\Test.java:5: cannot find symbol symbol : class Inner1 location: class a.Test Inner1 i; ^ 1 error
another problem in the same area package a; import static pkgstaticimport.QQType1.*; import pkgstaticimport.QQType1.*; public class Test { void foo() { Inner1 i; Inner2 j; } } We find 2 errors The type Inner1 is ambiguous The type Inner2 is ambiguous and javac 0 error.
Added StaticImport test030
Verified in I20050510-0010 + JDT/Core HEAD