# HG changeset patch # User lana # Date 1462475457 0 # Node ID 5c13564b227bd1c0cbad3fccc877545f13faf486 # Parent 9c1b6cb93294b1d1ef8678f8ca16eadf458dbca0# Parent 339503342184bd74d34c2ce8dd2add128402c98f Merge diff -r 9c1b6cb93294 -r 5c13564b227b jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/SchemaGenerator.java --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/SchemaGenerator.java Thu May 05 17:35:48 2016 +0000 +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/SchemaGenerator.java Thu May 05 19:10:57 2016 +0000 @@ -140,6 +140,9 @@ aptargs.add("-cp"); aptargs.add(setClasspath(options.classpath)); // set original classpath + jaxb-api to be visible to annotation processor + aptargs.add("-addmods"); + aptargs.add("java.xml.bind"); + if(options.targetDir!=null) { aptargs.add("-d"); aptargs.add(options.targetDir.getPath()); diff -r 9c1b6cb93294 -r 5c13564b227b jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wscompile/WsgenTool.java --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wscompile/WsgenTool.java Thu May 05 17:35:48 2016 +0000 +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wscompile/WsgenTool.java Thu May 05 19:10:57 2016 +0000 @@ -162,6 +162,8 @@ boolean bootCP = useBootClasspath(EndpointReference.class) || useBootClasspath(XmlSeeAlso.class); List args = new ArrayList(6 + (bootCP ? 1 : 0) + (options.nocompile ? 1 : 0) + (options.encoding != null ? 2 : 0)); + args.add("-addmods"); + args.add("java.xml.ws"); args.add("-d"); args.add(options.destDir.getAbsolutePath()); args.add("-classpath"); diff -r 9c1b6cb93294 -r 5c13564b227b jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java Thu May 05 17:35:48 2016 +0000 +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java Thu May 05 19:10:57 2016 +0000 @@ -525,6 +525,8 @@ String classpathString = createClasspathString(); boolean bootCP = useBootClasspath(EndpointContext.class) || useBootClasspath(JAXBPermission.class); List args = new ArrayList(); + args.add("-addmods"); + args.add("java.xml.ws"); args.add("-d"); args.add(classDir); args.add("-classpath");