changeset 5498:a5b0c4a0e203

Merge
author dbuck
date Wed, 21 Nov 2012 07:20:34 -0800
parents 8bbe659db11e 0c588531e35b
children 01291ac65385
files
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/beans/EventHandler/Test6277266.java	Wed Nov 21 06:59:59 2012 -0800
+++ b/test/java/beans/EventHandler/Test6277266.java	Wed Nov 21 07:20:34 2012 -0800
@@ -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) {