<html><body><div dir="auto">Can you change the test to call checkPermission prior to setting SSL as the system security manager?</div><div dir="auto"><br></div><div dir="auto">This will just ensure that all necessary classes are loaded prior to SSL becoming the security manager. </div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto"><br></div><div dir="auto">Peter.</div><div dir="auto"><br><div dir="auto" class="tizen_signature">Sent from my Samsung device.</div> </div>





<div class="tizen_quote">---- Original message ----<br>From: Wang Weijun <weijun.wang@oracle.com><br>Sent: 07/07/2016 01:45:08 pm<br>To: Peter Firmstone <peter.firmstone@zeus.net.au><br>Cc: SeanMullan <sean.mullan@oracle.com>; jigsaw-dev <jigsaw-dev@openjdkjava.net>; OpenJDK <security-dev@openjdk.java.net><br>Subject: Re: Strange test failure when referencing a class in a deprivileged module<br></div><br>

I run the program directly (not from jtreg) and the result is different:
<br>
<br>Exception in thread "main" java.lang.BootstrapMethodError: call site initialization exception
<br>    at SSL.checkPermission(SSL.java:21)
<br>    at java.lang.SecurityManager.checkPropertyAccess(java.base@9-ea/SecurityManager.java:1285)
<br>    at java.lang.System.getProperty(java.base@9-ea/System.java:762)
<br>    at SSL.main(SSL.java:28)
<br>
<br>Then I add -Djava.security.debug=all, and the exact old exception is back! The debug output [1] has nothing special, in fact there is no difference if I substitute SQLPermission to AllPermission, except that with AllPermission the program runs fine.
<br>
<br>Thanks
<br>Max
<br>
<br>[1] https://gist.github.com/wangweij/b7d031dea470000c456b169f1e733eac
<br>
<br>> On Jul 7, 2016, at 11:02 AM, Peter Firmstone <peter.firmstone@zeus.net.au> wrote:
<br>> 
<br>> Have you tried setting the jvm in security debug mode to see else might be occurring?  If so can you send the output?
<br>> 
<br>> Regards,
<br>> 
<br>> Peter.
<br>> 
<br>> Sent from my Samsung device.
<br>
<br><br></body></html>