Mon, 17 Oct 2011 12:54:33 +0100
7097436: Project Coin: duplicate varargs warnings on method annotated with @SafeVarargs
Summary: Duplicate aliasing check during subtyping leads to spurious varargs diagnostic
Reviewed-by: jjg
1 /*
2 * @test
3 * @bug 1240831
4 * @summary Certain classes should have been reported as abstract, but
5 * the compiler failed to detect this. This comes up when a
6 * subclass declares a method with the same name as an
7 * unimplemented, unaccessible method in a superclass. Even though
8 * the method has the same name, it does not override.
9 * @author turnidge
10 *
11 * @compile/fail -nowrite one/Parent.java two/Child.java
12 */