changeset 5496:0c588531e35b

8003333: Regression: java/beans/EventHandler/Test6277266.java fails with ACE Reviewed-by: art
author malenkov
date Wed, 21 Nov 2012 18:21:55 +0400
parents 7afae731f5b1
children a5b0c4a0e203
files test/java/beans/EventHandler/Test6277266.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/beans/EventHandler/Test6277266.java	Mon Nov 19 11:13:08 2012 +0800
+++ b/test/java/beans/EventHandler/Test6277266.java	Wed Nov 21 18:21:55 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) {