Community
Participate
Working Groups
here follow two classes: ClassA in default package, and ClassB in package test.a: public class ClassA { } package test.a; public class ClassB { public void test() { System.out.println(ClassA.class); } } the compiler will intially throw an error for the System.out.println line, which i believe it shouldn't --- since ClassA is in default package. then, to make matters worse, if one 'organizes imports' in ClassB by typing ctrl-chift-o, the compiler does the following and then throws two errors (another one for the added import): package test.a; import ClassA; public class ClassB { public void test() { System.out.println(ClassA.class); } } thus, it seems impossible to use classes in the default package with 3.1M4 (not that i'd want to, anyway :-)
note: ClassA and classB are each in their own separate file, as usual.
*** This bug has been marked as a duplicate of 80218 ***