jdk/test/java/beans/EventHandler/Test6277266.java
changeset 14499 3f36647a27f4
parent 7668 d4a77089c587
child 23010 6dadb192ad81
--- 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) {