equal
deleted
inserted
replaced
341 // true if printStackWhenAccessFails has been initialized |
341 // true if printStackWhenAccessFails has been initialized |
342 private static volatile boolean printStackWhenAccessFailsSet; |
342 private static volatile boolean printStackWhenAccessFailsSet; |
343 |
343 |
344 private static void printStackTraceIfNeeded(Throwable e) { |
344 private static void printStackTraceIfNeeded(Throwable e) { |
345 if (!printStackWhenAccessFailsSet && VM.initLevel() >= 1) { |
345 if (!printStackWhenAccessFailsSet && VM.initLevel() >= 1) { |
346 String s = GetPropertyAction |
346 String s = GetPropertyAction.privilegedGetProperty( |
347 .getProperty("sun.reflect.debugModuleAccessChecks"); |
347 "sun.reflect.debugModuleAccessChecks"); |
348 printStackWhenAccessFails = |
348 printStackWhenAccessFails = |
349 (s != null && !s.equalsIgnoreCase("false")); |
349 (s != null && !s.equalsIgnoreCase("false")); |
350 printStackWhenAccessFailsSet = true; |
350 printStackWhenAccessFailsSet = true; |
351 } |
351 } |
352 if (printStackWhenAccessFails) { |
352 if (printStackWhenAccessFails) { |