1/* 2 * @test /nodynamiccopyright/ 3 * @bug 6219964 8161013 4 * @summary Anonymous class types are not final 5 * @compile T6219964.java 6 */ 7 8public class T6219964 { 9 interface I { } 10 void foo() { 11 new Object() { 12 I bar() { 13 return (I)this; 14 } 15 }; 16 } 17} 18