JDK-8177858 : JAWS-RT reference to internal JDK API's
  • Type: Bug
  • Component: xml
  • Sub-Component: jax-ws
  • Priority: P2
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2017-03-31
  • Updated: 2017-04-03
  • Resolved: 2017-04-03
Related Reports
Relates :  
Description
When running with Jigsaw b162 with --permit-illegal-access, the following warnings are printed from the standalone jar.


WARNING: Illegal access by com.sun.xml.ws.model.Injector (file:files-2.1/com.sun.xml.ws/jaxws-rt/2.3.0-b170309.1503/jaxws-rt-2.3.0-b170309.1503.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) 
WARNING: Illegal access by com.sun.xml.ws.model.Injector (file:files-2.1/com.sun.xml.ws/jaxws-rt/2.3.0-b170309.1503/jaxws-rt-2.3.0-b170309.1503.jar) to method java.lang.ClassLoader.definePackage(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.net.URL) 
WARNING: Illegal access by com.sun.xml.ws.model.Injector (file:files-2.1/com.sun.xml.ws/jaxws-rt/2.3.0-b170309.1503/jaxws-rt-2.3.0-b170309.1503.jar) to method java.lang.ClassLoader.getPackage(java.lang.String) 
WARNING: Illegal access by com.sun.xml.ws.model.Injector (file:files-2.1/com.sun.xml.ws/jaxws-rt/2.3.0-b170309.1503/jaxws-rt-2.3.0-b170309.1503.jar) to method java.lang.ClassLoader.resolveClass(java.lang.Class) 

If these have fall-back code if the access fails, let me know and I'll track known safe occurrences.
Comments
in JDK-8170370, the fallback to Unsafe has been added; original code is still there since the implementation should work on jdk pre-9 as well (and preferably with no changes)
03-04-2017

This is the standalone version of JAX-WS.
31-03-2017