aoqi@0: /** aoqi@0: * @test aoqi@0: * @bug 6520152 aoqi@0: * @summary ACC_FINAL flag for anonymous classes shouldn't be set aoqi@0: * @compile T.java aoqi@0: * @run main/othervm T6520152 aoqi@0: */ aoqi@0: aoqi@0: import java.lang.reflect.Method; aoqi@0: import static java.lang.reflect.Modifier.*; aoqi@0: aoqi@0: public class T6520152 { aoqi@0: public static void main(String [] args) throws Exception { aoqi@0: Class clazz = Class.forName("T$1"); aoqi@0: if ((clazz.getModifiers() & FINAL) != 0) { aoqi@0: throw new RuntimeException("Failed: " + clazz.getName() + " shouldn't be marked final."); aoqi@0: } aoqi@0: } aoqi@0: }