|
Java example source code file (T6537020.java)
The T6537020.java Java example source code
/*
* @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;
}
Other Java examples (source code examples)Here is a short list of links related to this Java T6537020.java source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.