langtools/test/tools/javac/6520152/T6520152.java
changeset 10 06bc494ca11e
child 37633 d16d6d59446d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/langtools/test/tools/javac/6520152/T6520152.java	Sat Dec 01 00:00:00 2007 +0000
@@ -0,0 +1,19 @@
+/**
+ * @test
+ * @bug     6520152
+ * @summary ACC_FINAL flag for anonymous classes shouldn't be set
+ * @compile T.java
+ * @run main/othervm T6520152
+ */
+
+import java.lang.reflect.Method;
+import static java.lang.reflect.Modifier.*;
+
+public class T6520152 {
+    public static void main(String [] args) throws Exception {
+        Class clazz = Class.forName("T$1");
+        if ((clazz.getModifiers() & FINAL) != 0) {
+            throw new RuntimeException("Failed: " + clazz.getName() + " shouldn't be marked final.");
+        }
+    }
+}