java.lang.Object
com.ibm.j9ddr.vm29.tools.ddrinteractive.JavaVersionHelper
JavaVersionHelper helps check if the JVM version is new enough for the modularity DDR commands
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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 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
-
ensureMinimumJavaVersion(int, J9JavaVMPointer, PrintStream)
instead