Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8083956 | emb-9 | Miroslav Kos | P2 | Resolved | Fixed | team |
There will be no tools.jar in the new JDK modular image. The JAX-WS dependency on tools.jar (and possibly other JAR files in the JDK image) needs to be examined and updated to work with the new modular image.
com.sun.tools.internal.ws.Invoker and com.sun.tools.internal.xjc.api.util.ApClassLoader looks up the URL of tools.jar and create its own URLClassLoader to load the tool classes. In addition, com.sun.tools.internal.ws.wscompile.JavaCompilerHelper invokes com.sun.tools.javac.Main via reflection.
To get the Java compiler, then one recommended option is to use javax.tools.ToolProvider and get the javax.tools.JavaCompiler.
com.sun.tools.internal.ws.Invoker and com.sun.tools.internal.xjc.api.util.ApClassLoader looks up the URL of tools.jar and create its own URLClassLoader to load the tool classes. In addition, com.sun.tools.internal.ws.wscompile.JavaCompilerHelper invokes com.sun.tools.javac.Main via reflection.
To get the Java compiler, then one recommended option is to use javax.tools.ToolProvider and get the javax.tools.JavaCompiler.
- backported by
-
JDK-8083956 JAX-WS tools need to updated to work with modular image
- Resolved
- is blocked by
-
JDK-6929461 javax.tools.ToolProvider's dependence on tools.jar that no longer exists in modular JDK
- Resolved
- relates to
-
JDK-8060113 Updates to JAX-WS tools to work with modular image need further work
- Closed