--- a/jdk/test/java/beans/EventHandler/Test6277266.java Wed Nov 14 18:40:05 2012 +0400
+++ b/jdk/test/java/beans/EventHandler/Test6277266.java Tue Nov 20 18:56:01 2012 +0400
@@ -51,9 +51,11 @@
)
);
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) {