- 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 Summary
Constructors Constructor Description JavaVersionHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
ensureJava9AndUp(com.ibm.j9ddr.vm29.pointer.generated.J9JavaVMPointer vm, PrintStream out)
Deprecated.static boolean
ensureMinimumJavaVersion(int version, com.ibm.j9ddr.vm29.pointer.generated.J9JavaVMPointer vm, PrintStream out)
Returnstrue
if the Java version isversion
or higher.
-
-
-
Method Detail
-
ensureJava9AndUp
@Deprecated public static boolean ensureJava9AndUp(com.ibm.j9ddr.vm29.pointer.generated.J9JavaVMPointer vm, PrintStream out) throws CorruptDataException
Deprecated.Returnstrue
if the Java version is Java9 or higher.- Parameters:
vm
- J9JavaVMPointerout
- 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
Returnstrue
if the Java version isversion
or higher.- Parameters:
version
- the minimum versionvm
- J9JavaVMPointerout
- the output print stream- Returns:
true
if the Java version isversion
or higher- Throws:
CorruptDataException
-
-