< prev index next >

src/java.base/share/classes/java/lang/System.java

Print this page
@@ -38,10 +38,11 @@
  import java.lang.foreign.MemorySegment;
  import java.lang.invoke.MethodHandle;
  import java.lang.invoke.MethodType;
  import java.lang.invoke.StringConcatFactory;
  import java.lang.module.ModuleDescriptor;
+ import java.lang.reflect.ClassFileFormatVersion;
  import java.lang.reflect.Constructor;
  import java.lang.reflect.Executable;
  import java.lang.reflect.Method;
  import java.lang.reflect.Modifier;
  import java.net.URI;

@@ -2779,10 +2780,14 @@
                                                        ContinuationScope contScope,
                                                        Continuation continuation) {
                  return StackWalker.newInstance(options, null, contScope, continuation);
              }
  
+             public int classFileFormatVersion(Class<?> clazz) {
+                 return clazz.getClassFileVersion();
+             }
+ 
              public String getLoaderNameID(ClassLoader loader) {
                  return loader != null ? loader.nameAndId() : "null";
              }
  
              @Override
< prev index next >