< prev index next >

test/hotspot/jtreg/runtime/ClassFile/ClassFileVersionTest.java

Print this page
@@ -40,11 +40,11 @@
       * Include a use of a preview API so that the minor class file
       * version of the class file for this class gets set during
       * compilation. If a particular class becomes non-preview, any
       * currently preview class can be substituted in.
       */
-     private static final Class<?> PREVIEW_API = java.lang.foreign.MemorySegment.class;
+     private static final Class<?> PREVIEW_API = java.lang.ScopedValue.class;
      static Method m;
  
      public static void testIt(String className, int expectedResult) throws Exception {
          testIt(Class.forName(className), expectedResult);
      }
< prev index next >