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=Bad.out -XDrawDiagnostics  Bad.java
10 */
11
12package java.lang.String;
13
14class Bad {
15}
16