<html><body><div dir="auto">Perhaps the policy provider hasn't been refreshed when the new security manager is in force?  Try doing a Policy.refresh() in the SecurityManager constructor.</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto"><br></div><div dir="auto">Peter.<br><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 09:47:09 am<br>To: Sean Mullan <sean.mullan@oracle.com><br>Cc: 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>

<br>> On Jul 7, 2016, at 5:04 AM, Sean Mullan <sean.mullan@oracle.com> wrote:
<br>> 
<br>> Does your SSL code match up with the stack trace? The test only has 27 lines, but the stack trace says it was called from line 42.
<br>
<br>My local SSL.java still contains the GPL comments and I didn't paste them here. Line 42 is
<br>
<br>                 if (!(perm instanceof SQLPermission)) {
<br>
<br>BTW, I also tried putting the SecurityManager impl into a different codePath with AllPermission granted, and load it on the command line with -Djava.security.manager=X, the test still failed with the same exception.
<br>
<br>--Max
<br>
<br><br></body></html>