8003333: Regression: java/beans/EventHandler/Test6277266.java fails with ACE
authormalenkov
Tue, 20 Nov 2012 18:56:01 +0400
changeset 14499 3f36647a27f4
parent 14498 317e4103662e
child 14500 a3ac50817dec
child 14647 bacc2d4f4b27
8003333: Regression: java/beans/EventHandler/Test6277266.java fails with ACE Reviewed-by: art
jdk/test/java/beans/EventHandler/Test6277266.java
--- 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) {