langtools/test/tools/javac/cast/6219964/T6219964.java
changeset 39674 de3b0e52ca17
parent 24796 f940af3221e2
equal deleted inserted replaced
39673:f59a7f4d6f42 39674:de3b0e52ca17
     1 /*
     1 /*
     2  * @test    /nodynamiccopyright/
     2  * @test    /nodynamiccopyright/
     3  * @bug     6219964
     3  * @bug     6219964 8161013
     4  * @summary Compiler allows illegal cast of anonymous inner class
     4  * @summary Anonymous class types are not final
     5  * @compile/fail/ref=T6219964.out -XDrawDiagnostics  T6219964.java
     5  * @compile T6219964.java
     6  */
     6  */
     7 
     7 
     8 public class T6219964 {
     8 public class T6219964 {
     9     interface I { }
     9     interface I { }
    10     void foo() {
    10     void foo() {