File: T6537020.java

package info (click to toggle)
libnb-javaparser-java 9%2B2018-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 65,172 kB
  • sloc: java: 440,096; xml: 6,359; sh: 865; makefile: 314
file content (26 lines) | stat: -rw-r--r-- 466 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * @test /nodynamiccopyright/
 * @bug 6537020
 * @summary JCK tests: a compile-time error should be given in case of ambiguously imported fields (types, methods)
 *
 * @compile/fail/ref=T6537020.out -XDrawDiagnostics T6537020.java
 */

package p;

import static p.T6537020.C.s;

class T6537020 {

    static class A {
       static String s;
    }

    interface B {
       String s = "";
    }

    static class C extends A implements B { }

    Object o = s;
}