You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2018/10/28 13:27:48 UTC

svn commit: r1845026 - /axis/axis2/java/core/trunk/modules/jaxbri-codegen/src/main/java/org/apache/axis2/jaxbri/CodeGenerationUtility.java

Author: veithen
Date: Sun Oct 28 13:27:48 2018
New Revision: 1845026

URL: http://svn.apache.org/viewvc?rev=1845026&view=rev
Log:
Work around incompatibility between plexus-classworlds and Java 9.

Modified:
    axis/axis2/java/core/trunk/modules/jaxbri-codegen/src/main/java/org/apache/axis2/jaxbri/CodeGenerationUtility.java

Modified: axis/axis2/java/core/trunk/modules/jaxbri-codegen/src/main/java/org/apache/axis2/jaxbri/CodeGenerationUtility.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxbri-codegen/src/main/java/org/apache/axis2/jaxbri/CodeGenerationUtility.java?rev=1845026&r1=1845025&r2=1845026&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/jaxbri-codegen/src/main/java/org/apache/axis2/jaxbri/CodeGenerationUtility.java (original)
+++ axis/axis2/java/core/trunk/modules/jaxbri-codegen/src/main/java/org/apache/axis2/jaxbri/CodeGenerationUtility.java Sun Oct 28 13:27:48 2018
@@ -79,6 +79,9 @@ public class CodeGenerationUtility {
                                             CodeGenConfiguration cgconfig)
             throws RuntimeException {
         try {
+            // Work around an incompatibility between plexus-classworlds and Java 9 that causes
+            // a failure to load package annotations.
+            CodeGenerationUtility.class.getClassLoader().loadClass("com.sun.tools.xjc.reader.xmlschema.bindinfo.package-info");
 
             //check for the imported types. Any imported types are supposed to be here also
             if (schemas == null || schemas.isEmpty()) {