summaryrefslogtreecommitdiffstats
path: root/tests/pureJava/conflictingPackageNamesWithPackages/Java.java
blob: a3cf27560a0b3e39e97bf269d83075fddcfc9103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package conflictingPackageNamesWithPackages;

public class Java {
    public String lang() {
        throw new RuntimeException("String lang(): shouldn't have been called");
    }

    public static class lang {
        public static class String {
            public String() {
                throw new RuntimeException("new String(): shouldn't have been called");
            }
        }
        static String String() { return null; }
    }
}