Package net.bytebuddy

Class ClassFileVersion.VersionLocator.ForJava9CapableVm

    • Field Detail

      • STATIC_METHOD

        private static final java.lang.Object STATIC_METHOD
        Indicates that a reflective method call invokes a static method.
      • current

        private final java.lang.reflect.Method current
        The java.lang.Runtime#version() method.
      • major

        private final java.lang.reflect.Method major
        The java.lang.Runtime.Version#major() method.
    • Constructor Detail

      • ForJava9CapableVm

        protected ForJava9CapableVm​(java.lang.reflect.Method current,
                                    java.lang.reflect.Method major)
        Creates a new version locator for a Java 9 capable VM.
        Parameters:
        current - The java.lang.Runtime#version() method.
        major - The java.lang.Runtime.Version#major() method.