mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8264148: Update spec for exceptions retrofitted for exception chaining
Reviewed-by: rriggs, smarks
This commit is contained in:
parent
353807c5f1
commit
815248ab27
22 changed files with 40 additions and 76 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue