< prev index next >

test/compiler/c2/Test6837094.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke

@@ -25,17 +25,23 @@
 /**
  * @test
  * @bug 6837094
  * @summary False positive for "meet not symmetric" failure
  *
- * @run main/othervm -Xbatch -XX:CompileOnly=Test.collectIs,Test$Factory$1.getArray,Test$Factory$2.getArray Test
+ * @run main/othervm -Xbatch
+ *    -XX:CompileCommand=compileonly,compiler.c2.Test6837094::collectIs
+ *    -XX:CompileCommand=compileonly,compiler.c2.Test6837094$Factory$1::getArray
+ *    -XX:CompileCommand=compileonly,compiler.c2.Test6837094$Factory$2::getArray
+ *    compiler.c2.Test6837094
  */
 
-import java.util.Set;
+package compiler.c2;
+
 import java.util.HashSet;
+import java.util.Set;
 
-public class Test {
+public class Test6837094 {
 
   private interface Factory<M extends Interface> {
     Factory<Child0> Zero = new Factory<Child0>() {
       public Child0[] getArray() { return new Child0[1]; }
     };

@@ -70,25 +76,27 @@
     for (int i = 0; i < 25000; i++) {
       collectIs(Factory.Zero, s);
       collectIs(Factory.One, s);
     }
   }
-}
 
-/**
+  /**
  * Establish necessary class hierarchy
  */
 
-interface Interface {
-}
+  static interface Interface {
+  }
 
-class Parent {
-}
+  static class Parent {
+  }
 
-class Child0 extends Parent implements Interface {
-}
+  static class Child0 extends Parent implements Interface {
+  }
 
-class Child1 extends Parent implements Interface {
-}
+  static class Child1 extends Parent implements Interface {
+  }
 
-class Child2 extends Parent implements Interface {
+  static class Child2 extends Parent implements Interface {
+  }
+
 }
+
< prev index next >