<html><body><div dir="auto">Sorry, I wasn't clear, I meant, create a new instance of SSL, call its checkPermission method, then make that instance your system security manager.</div><div dir="auto"><br></div><div dir="auto">Although the check permission call will be repeated in the test, it will have run while the standard SecurityManager is in force, so the jvm won't lazy load any classes that require permission checks, during the test permission check as that will happen during the first permission check call.</div><div dir="auto"><br></div><div dir="auto">Cheers,</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 06:27:43 pm<br>To: Peter Firmstone <peter.firmstone@zeus.net.au><br>Cc: SeanMullan <sean.mullan@oracle.com>; jigsaw-dev <jigsaw-dev@openjdk..java.net>; OpenJDK <security-dev@openjdk.java.net><br>Subject: Re: Strange test failure when referencing a class in a deprivileged module<br></div><br>

Like this?
<br>
<br>https://gist.github.com/wangweij/6992aaf9617b9e2f242ddf9e391ea5f6
<br>
<br>The horizontal line is printed on line 706 of the gist.
<br>
<br>--Max
<br>
<br>> On Jul 7, 2016, at 12:57 PM, Peter Firmstone <peter.firmstone@zeus.net.au> wrote:
<br>> 
<br>> Can you change the test to call checkPermission prior to setting SSL as the system security manager?
<br>> 
<br>> This will just ensure that all necessary classes are loaded prior to SSL becoming the security manager. 
<br>> 
<br>> Regards,
<br>>     
<br>> Peter.
<br>
<br><br></body></html>