8003333: Regression: java/beans/EventHandler/Test6277266.java fails with ACE
Reviewed-by: art
This commit is contained in:
parent
b05c04c8c0
commit
f19ad0fb5b
@ -51,9 +51,11 @@ public class Test6277266 {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
throw new Error("SecurityException expected");
|
throw new Error("SecurityException expected");
|
||||||
|
} catch (SecurityException exception) {
|
||||||
|
return; // expected security exception in JDK 7
|
||||||
} catch (InvocationTargetException exception) {
|
} catch (InvocationTargetException exception) {
|
||||||
if (exception.getCause() instanceof SecurityException){
|
if (exception.getCause() instanceof SecurityException){
|
||||||
return; // expected security exception
|
return; // expected security exception in JDK 8
|
||||||
}
|
}
|
||||||
throw new Error("unexpected exception", exception);
|
throw new Error("unexpected exception", exception);
|
||||||
} catch (InterruptedException exception) {
|
} catch (InterruptedException exception) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user