OpenJDK / jdk / hs
changeset 14499:3f36647a27f4
8003333: Regression: java/beans/EventHandler/Test6277266.java fails with ACE
Reviewed-by: art
author | malenkov |
---|---|
date | Tue, 20 Nov 2012 18:56:01 +0400 |
parents | 317e4103662e |
children | a3ac50817dec bacc2d4f4b27 |
files | jdk/test/java/beans/EventHandler/Test6277266.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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) {