Markus Koschany pushed to branch upstream at Debian Java Maintainers / 
jboss-modules


Commits:
8b6890d2 by Markus Koschany at 2018-11-25T12:52:04Z
New upstream version 1.8.7
- - - - -


3 changed files:

- pom.xml
- src/main/java/org/jboss/modules/ModuleLoadException.java
- src/main/java/org/jboss/modules/xml/ModuleXmlParser.java


Changes:

=====================================
pom.xml
=====================================
@@ -23,7 +23,7 @@
     <modelVersion>4.0.0</modelVersion>
     <groupId>org.jboss.modules</groupId>
     <artifactId>jboss-modules</artifactId>
-    <version>1.8.6.Final</version>
+    <version>1.8.7.Final</version>
     <name>JBoss Modules</name>
 
     <parent>


=====================================
src/main/java/org/jboss/modules/ModuleLoadException.java
=====================================
@@ -71,6 +71,8 @@ public class ModuleLoadException extends Exception {
      * @return the unchecked error
      */
     public ModuleLoadError toError() {
-        return new ModuleLoadError(getMessage(), getCause());
+        final ModuleLoadError error = new ModuleLoadError(getMessage(), 
getCause());
+        error.setStackTrace(getStackTrace());
+        return error;
     }
 }


=====================================
src/main/java/org/jboss/modules/xml/ModuleXmlParser.java
=====================================
@@ -1019,6 +1019,9 @@ public final class ModuleXmlParser {
                         try {
                             coordinates = ArtifactCoordinates.fromString(name);
                             final File file = 
mavenResolver.resolveJarArtifact(coordinates);
+                            if (file == null) {
+                                throw new 
XmlPullParserException(String.format("Failed to resolve artifact '%s'", 
coordinates), reader, null);
+                            }
                             resourceLoader = factory.createResourceLoader("", 
file.getPath(), name);
                         } catch (IOException | IllegalArgumentException e) {
                             throw new 
XmlPullParserException(String.format("Failed to add artifact '%s'", name), 
reader, e);



View it on GitLab: 
https://salsa.debian.org/java-team/jboss-modules/commit/8b6890d2759f966824249cb31a6ffd07b411ad02

-- 
View it on GitLab: 
https://salsa.debian.org/java-team/jboss-modules/commit/8b6890d2759f966824249cb31a6ffd07b411ad02
You're receiving this email because of your account on salsa.debian.org.
_______________________________________________
pkg-java-commits mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to