< prev index next >

test/compiler/tiered/LevelTransitionTest.java

Print this page

        

@@ -23,14 +23,15 @@
 
 import java.lang.reflect.Executable;
 import java.lang.reflect.Method;
 import java.util.Objects;
 import java.util.concurrent.Callable;
+import compiler.whitebox.CompilerWhiteBoxTest;
 
 /**
  * @test LevelTransitionTest
- * @library /testlibrary /../../test/lib /compiler/whitebox
+ * @library /testlibrary /../../test/lib /
  * @modules java.base/sun.misc
  *          java.management
  * @ignore 8067651
  * @build TransitionsTestExecutor LevelTransitionTest
  * @run main ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission

@@ -131,12 +132,12 @@
      *
      * @return {@code true} for trivial methods, {@code false} otherwise
      */
     protected boolean isTrivial() {
         return testCase == ExtendedTestCase.ACCESSOR_TEST
-                || testCase == SimpleTestCase.METHOD_TEST
-                || testCase == SimpleTestCase.STATIC_TEST
+                || testCase.name().equals("METHOD_TEST")
+                || testCase.name().equals("STATIC_TEST")
                 || (testCase == ExtendedTestCase.TRIVIAL_CODE_TEST && isMethodProfiled);
     }
 
     /**
      * Invokes {@linkplain #method} until its compilation level is changed.
< prev index next >