8185855: Debug exception stacks should be clearer

Reviewed-by: mullan, ascarpino
This commit is contained in:
Sean Coffey 2017-12-06 14:33:33 +00:00
parent a923e57c7b
commit 0c7be1d9e7
11 changed files with 15 additions and 24 deletions

View file

@ -512,7 +512,8 @@ public class PolicyFile extends java.security.Policy {
}
} catch (Exception e) {
if (debug != null) {
debug.println("error reading policy "+e);
debug.println(
"Debug info only. Error reading policy " +e);
e.printStackTrace();
}
// ignore that policy
@ -559,6 +560,7 @@ public class PolicyFile extends java.security.Policy {
} catch (Exception e) {
// ignore, treat it like we have no keystore
if (debug != null) {
debug.println("Debug info only. Ignoring exception.");
e.printStackTrace();
}
}