mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8185855: Debug exception stacks should be clearer
Reviewed-by: mullan, ascarpino
This commit is contained in:
parent
a923e57c7b
commit
0c7be1d9e7
11 changed files with 15 additions and 24 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue