Module openj9.dtfj

Class JavaVersionHelper


  • public class JavaVersionHelper
    extends Object
    JavaVersionHelper helps check if the JVM version is new enough for the modularity DDR commands
    • Constructor Detail

      • JavaVersionHelper

        public JavaVersionHelper()
    • Method Detail

      • ensureMinimumJavaVersion

        public static boolean ensureMinimumJavaVersion​(int version,
                                                       com.ibm.j9ddr.vm29.pointer.generated.J9JavaVMPointer vm,
                                                       PrintStream out)
                                                throws CorruptDataException
        Returns true if the Java version is version or higher.
        Parameters:
        version - the minimum version
        vm - J9JavaVMPointer
        out - the output print stream
        Returns:
        true if the Java version is version or higher
        Throws:
        CorruptDataException