test/tools/javac/HiddenAbstractMethod/Test

Tue, 11 Aug 2009 01:13:42 +0100

author
mcimadamore
date
Tue, 11 Aug 2009 01:13:42 +0100
changeset 360
62fb6cafa93b
parent 1
9a66ca7c79fa
permissions
-rw-r--r--

6869075: regression: javac crashes when compiling compound string assignment with generics
Summary: javac should not add syntehtic cast to the LHS of an assignment expression
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  */

mercurial