8003333: Regression: java/beans/EventHandler/Test6277266.java fails with ACE

Reviewed-by: art
This commit is contained in:
Sergey Malenkov 2012-11-20 18:56:01 +04:00
parent b05c04c8c0
commit f19ad0fb5b

View File

@ -51,9 +51,11 @@ public class Test6277266 {
)
);
throw new Error("SecurityException expected");
} catch (SecurityException exception) {
return; // expected security exception in JDK 7
} catch (InvocationTargetException exception) {
if (exception.getCause() instanceof SecurityException){
return; // expected security exception
return; // expected security exception in JDK 8
}
throw new Error("unexpected exception", exception);
} catch (InterruptedException exception) {