Strange test failure when referencing a class in a deprivileged module

Mandy Chung mandy.chung at
Tue Jul 5 15:50:58 UTC 2016

> On Jul 5, 2016, at 8:11 AM, Alan Bateman <Alan.Bateman at> wrote:
> On 05/07/2016 09:22, Wang Weijun wrote:
>>> On Jul 5, 2016, at 11:53 AM, Wang Weijun < at> wrote:
>>> The exception is at the end of this mail. The test passes if I change X.go() to calling a method inside this class
>> Update: any call that triggers a permission check will do. For example:
> Yes, tricky issue because checkPermission is triggering class loading and permission checks. It worked previously because the java.sql module was defined to the boot loader.

Max - are you running the test with exploded image (see JDK-8155858 [1])?  The java.policy grants permission to modules in the jimage.


More information about the security-dev mailing list