8264148: Update spec for exceptions retrofitted for exception chaining

Reviewed-by: rriggs, smarks
This commit is contained in:
Joe Darcy 2021-03-30 19:59:59 +00:00
parent 353807c5f1
commit 815248ab27
22 changed files with 40 additions and 76 deletions

View file

@ -3195,7 +3195,7 @@ public abstract class ResourceBundle {
} catch (InvocationTargetException e) {
uncheckedThrow(e);
} catch (PrivilegedActionException e) {
assert e.getException() instanceof NoSuchMethodException;
assert e.getCause() instanceof NoSuchMethodException;
throw new InstantiationException("public no-arg constructor " +
"does not exist in " + bundleClass.getName());
}
@ -3230,7 +3230,7 @@ public abstract class ResourceBundle {
}
});
} catch (PrivilegedActionException e) {
throw (IOException) e.getException();
throw (IOException) e.getCause();
}
if (stream != null) {
try {