Can you change the test to call checkPermission prior to setting SSL as the 
system security manager?

This will just ensure that all necessary classes are loaded prior to SSL 
becoming the security manager. 

Regards,

Peter.

Sent from my Samsung device.
 
  Include original message
---- Original message ----
From: Wang Weijun <weijun.w...@oracle.com>
Sent: 07/07/2016 01:45:08 pm
To: Peter Firmstone <peter.firmst...@zeus.net.au>
Cc: SeanMullan <sean.mul...@oracle.com>; jigsaw-dev 
<jigsaw-...@openjdk.java.net>; OpenJDK <security-dev@openjdk.javanet>
Subject: Re: Strange test failure when referencing a class in a deprivileged 
module

I run the program directly (not from jtreg) and the result is different: 

Exception in thread "main" java.lang.BootstrapMethodError: call site 
initialization exception 
    at SSL.checkPermission(SSL.java:21) 
    at 
java.lang.SecurityManager.checkPropertyAccess(java.base@9-ea/SecurityManager.java:1285)
 
    at java.lang.System.getProperty(java.base@9-ea/System.java:762) 
    at SSL.main(SSL.java:28) 

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. 

Thanks 
Max 

[1] https://gist.github.com/wangweij/b7d031dea470000c456b169f1e733eac 

> On Jul 7, 2016, at 11:02 AM, Peter Firmstone <peter.firmst...@zeus.net.au> 
>wrote: 
>  
> Have you tried setting the jvm in security debug mode to see else might be 
>occurring?  If so can you send the output? 
>  
> Regards, 
>  
> Peter. 
>  
> Sent from my Samsung device. 


Reply via email to