< prev index next >

test/langtools/tools/javac/SuperInit/SuperInitGood.java

Print this page
@@ -510,10 +510,24 @@
                  super();
              }
          }
      }
  
+     public static class Test25 {
+         public Test25(Object o) {}
+ 
+         class Sub extends Test25 {
+             public Sub() {
+                 super(new Object() {
+                     void foo() {
+                         getClass();
+                     }
+                 });
+             }
+         }
+     }
+ 
      public static void main(String[] args) {
          new Test0();
          new Test1();
          new Test1(7);
          new Test2<Byte>();

@@ -557,7 +571,8 @@
          new Test21((int)123);
          new Test21((float)123);
          new Test22('x');
          new Test23();
          new Test24();
+         new Test25(null);
      }
  }
< prev index next >