< prev index next >

test/compiler/c2/Test5057225.java

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

@@ -25,13 +25,17 @@
  * @test
  * @bug 5057225
  * @summary Remove useless I2L conversions
  * @modules java.base/jdk.internal.misc
  * @library /testlibrary
- * @run main/othervm -Xcomp -XX:CompileOnly=Test5057225.doload Test5057225
+ *
+ * @run main/othervm -Xcomp
+ *      -XX:CompileCommand=compileonly,compiler.c2.Test5057225::doload
+ *      compiler.c2.Test5057225
  */
 
+package compiler.c2;
 import jdk.test.lib.Utils;
 
 public class Test5057225 {
     static byte[]  ba = new byte[]  { -1 };
     static short[] sa = new short[] { -1 };

@@ -67,21 +71,21 @@
     };
 
     public static void main(String[] args) throws Exception {
         for (int i = 0; i < BYTE_MASKS.length; i++) {
             System.setProperty("value", "" + BYTE_MASKS[i]);
-            loadAndRunClass("Test5057225$loadUB2L");
+            loadAndRunClass(Test5057225.class.getName() + "$loadUB2L");
         }
 
         for (int i = 0; i < SHORT_MASKS.length; i++) {
             System.setProperty("value", "" + SHORT_MASKS[i]);
-            loadAndRunClass("Test5057225$loadUS2L");
+            loadAndRunClass(Test5057225.class.getName() + "$loadUS2L");
         }
 
         for (int i = 0; i < INT_MASKS.length; i++) {
             System.setProperty("value", "" + INT_MASKS[i]);
-            loadAndRunClass("Test5057225$loadUI2L");
+            loadAndRunClass(Test5057225.class.getName() + "$loadUI2L");
         }
     }
 
     static void check(long result, long expected) {
         if (result != expected)
< prev index next >