< prev index next >

src/java.base/share/classes/jdk/internal/access/JavaLangAccess.java

Print this page
*** 31,10 ***
--- 31,11 ---
  import java.lang.foreign.MemorySegment;
  import java.lang.foreign.SymbolLookup;
  import java.lang.invoke.MethodHandle;
  import java.lang.invoke.MethodType;
  import java.lang.module.ModuleDescriptor;
+ import java.lang.reflect.ClassFileFormatVersion;
  import java.lang.reflect.Executable;
  import java.lang.reflect.Method;
  import java.net.URI;
  import java.nio.charset.CharacterCodingException;
  import java.nio.charset.Charset;

*** 616,10 ***
--- 617,16 ---
       * Creates a new StackWalker
       */
      StackWalker newStackWalkerInstance(Set<StackWalker.Option> options,
                                         ContinuationScope contScope,
                                         Continuation continuation);
+ 
+     /**
+      * Returns the class file format version of the class.
+      */
+     int classFileFormatVersion(Class<?> klass);
+ 
      /**
       * Returns '<loader-name>' @<id> if classloader has a name
       * explicitly set otherwise <qualified-class-name> @<id>
       */
      String getLoaderNameID(ClassLoader loader);
< prev index next >