< prev index next >

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

Print this page
@@ -30,10 +30,11 @@
  import java.lang.annotation.Annotation;
  import java.lang.foreign.MemorySegment;
  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;

@@ -592,10 +593,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 >