You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2018/10/07 17:46:29 UTC

svn commit: r1843069 - /webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java

Author: veithen
Date: Sun Oct  7 17:46:29 2018
New Revision: 1843069

URL: http://svn.apache.org/viewvc?rev=1843069&view=rev
Log:
Fix StAX dialect detection on Java 9.

Modified:
    webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java

Modified: webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java?rev=1843069&r1=1843068&r2=1843069&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java (original)
+++ webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java Sun Oct  7 17:46:29 2018
@@ -223,6 +223,11 @@ public class StAXDialectDetector {
     }
     
     private static StAXDialect detectDialectFromJarManifest(URL rootUrl) {
+        if (rootUrl.getProtocol().equals("jrt")) {
+            // We get here for the StAX implementation in the JRE for Java 9 and above. There is no
+            // manifest for the runtime classes, so stop here.
+            return null;
+        }
         Manifest manifest;
         try {
             URL metaInfUrl = new URL(rootUrl, "META-INF/MANIFEST.MF");