Skip to content

Commit f5d71b1

Browse files
authored
Merge pull request #19407 from pshipton/dump02
(0.45) Avoid AccessControlException in com.ibm.jvm.Dump.<clinit>
2 parents 578a50a + 1f35c67 commit f5d71b1

File tree

1 file changed

+5
-2
lines changed
  • jcl/src/openj9.jvm/share/classes/com/ibm/jvm

1 file changed

+5
-2
lines changed

jcl/src/openj9.jvm/share/classes/com/ibm/jvm/Dump.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,11 @@
102102
* configuration.
103103
*/
104104
public class Dump {
105-
@SuppressWarnings("nls")
106-
private static final String SystemRequestPrefix = "z/OS".equalsIgnoreCase(System.getProperty("os.name")) ? "system:dsn=" : "system:file=";
105+
106+
private static final String SystemRequestPrefix =
107+
"z/OS".equalsIgnoreCase(com.ibm.oti.vm.VM.internalGetProperties().getProperty("os.name")) //$NON-NLS-1$ //$NON-NLS-2$
108+
? "system:dsn=" //$NON-NLS-1$
109+
: "system:file="; //$NON-NLS-1$
107110

108111
/**
109112
* Trigger a java dump. A java dump is in a human-readable format, and

0 commit comments

Comments
 (0)