[9] RFR(S): 8139375: [TESTBUG] compiler/jvmci/SecurityRestrictionsTest checks are too tight

Tatiana Pivovarova tatiana.pivovarova at oracle.com
Mon Oct 12 17:39:22 UTC 2015


Hello guys,

Please review this small patch
When we use JVMCI functions without permissions we expect 
AccessControlException. But this exception raises not explicitly. It 
causes other exception (for example ExceptionInInitializerError).
This patch add a workaround: we got the deepest cause and check that it 
is AccessControlException. Also I slightly changed 
Utils::runAndCheckException(Runnable runnable, Class<? extends 
Throwable> expectedException) to ensure that this changes don't break 
other tests which use this function.

bug id: https://bugs.openjdk.java.net/browse/JDK-8139375
webrev: http://cr.openjdk.java.net/~tpivovarova/8139375/webrev.00/
---
Thanks,
Tatiana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20151012/64bfcaef/attachment.html>


More information about the hotspot-compiler-dev mailing list