提交 5346462b 编写于 作者: M malenkov

8003333: Regression: java/beans/EventHandler/Test6277266.java fails with ACE

Reviewed-by: art
上级 df469dce
...@@ -51,9 +51,11 @@ public class Test6277266 { ...@@ -51,9 +51,11 @@ public class Test6277266 {
) )
); );
throw new Error("SecurityException expected"); throw new Error("SecurityException expected");
} catch (SecurityException exception) {
return; // expected security exception in JDK 7
} catch (InvocationTargetException exception) { } catch (InvocationTargetException exception) {
if (exception.getCause() instanceof SecurityException){ if (exception.getCause() instanceof SecurityException){
return; // expected security exception return; // expected security exception in JDK 8
} }
throw new Error("unexpected exception", exception); throw new Error("unexpected exception", exception);
} catch (InterruptedException exception) { } catch (InterruptedException exception) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册