jdk-24/test/langtools/tools/javac/PackageClassAmbiguity/util.java
2017-09-12 19:03:39 +02:00

18 lines
409 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4101529
* @summary The compiler used to create class names which were the same as
* existing package names and vice-versa. The compiler now checks
* for this before creating a package or a class.
* @author turnidge
*
* @compile/fail/ref=util.out -XDrawDiagnostics util.java
*/
package java;
import java.util.Set;
class util {
Set x;
}