Module openj9.dtfj

Class JavaVersionHelper

java.lang.Object
com.ibm.j9ddr.vm29.tools.ddrinteractive.JavaVersionHelper

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

    • JavaVersionHelper

      public JavaVersionHelper()
  • Method Details

    • ensureJava9AndUp

      @Deprecated public static boolean ensureJava9AndUp(com.ibm.j9ddr.vm29.pointer.generated.J9JavaVMPointer vm, PrintStream out) throws CorruptDataException
      Returns true if the Java version is Java9 or higher.
      Parameters:
      vm - J9JavaVMPointer
      out - the output print stream
      Returns:
      true if the Java version is Java9 or higher
      Throws:
      CorruptDataException
    • 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