jdk-24/langtools/test/tools/javac/generics/7007615/acc2/AccessibilityCheck02.java
Maurizio Cimadamore dfec6e2301 7007615: java_util/generics/phase2/NameClashTest02 fails since jdk7/pit/b123
Override clash algorithm is not implemented correctly

Reviewed-by: jjg
2011-02-07 18:10:13 +00:00

14 lines
432 B
Java

/*
* @test /nodynamiccopyright/
* @bug 7007615
* @summary java_util/generics/phase2/NameClashTest02 fails since jdk7/pit/b123.
* @author dlsmith
* @compile/fail/ref=AccessibilityCheck02.out -XDrawDiagnostics AccessibilityCheck02.java
*/
public class AccessibilityCheck02 extends p2.E {
String m(Object o) { return "hi"; } // this is okay
public int m(String s) { return 3; } // this overrides m(String) illegally
}