Due to a clarification in the spec (see 4661751) it is legal to import
a type declared in the same translation unit, but javac rejects that
code. Javac should accept that code.
1 package p1;
2 import p1.T;
3
4 class T {
5 public static void main(String[] args) {
6 }
7 }
a type declared in the same translation unit, but javac rejects that
code. Javac should accept that code.
1 package p1;
2 import p1.T;
3
4 class T {
5 public static void main(String[] args) {
6 }
7 }