1/*
2 * @test /nodynamiccopyright/
3 * @bug 4101529
4 * @summary The compiler used to create class names which were the same as
5 *          existing package names and vice-versa.  The compiler now checks
6 *          for this before creating a package or a class.
7 * @author turnidge
8 *
9 * @compile/fail/ref=util.out -XDrawDiagnostics  util.java
10 */
11
12package java;
13import java.util.Set;
14
15class util {
16    Set x;
17}
18