Skip to content
Commits on Source (3)
jboss-modules (1.8.3-1) unstable; urgency=medium
* New upstream version 1.8.3.
-- Markus Koschany <apo@debian.org> Sun, 06 May 2018 21:22:12 +0200
jboss-modules (1.8.2-1) unstable; urgency=medium
* New upstream version 1.8.2.
......
......@@ -23,7 +23,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.modules</groupId>
<artifactId>jboss-modules</artifactId>
<version>1.8.2.Final</version>
<version>1.8.3.Final</version>
<name>JBoss Modules</name>
<parent>
......
......@@ -106,7 +106,7 @@ public class ModuleClassLoader extends ConcurrentClassLoader {
final String clazzName = clazz.getName();
classesByName.put(clazzName, clazz);
try {
resources.put("META-INF/services/" + entry.getKey(), new URLConnectionResource(new URL("data:text/plain;charset=utf-8," + clazzName)));
resources.put("META-INF/services/" + entry.getKey(), new URLConnectionResource(new URL(null, "data:text/plain;charset=utf-8," + clazzName, DataURLStreamHandler.getInstance())));
} catch (IOException e) {
throw new IllegalStateException(e);
}
......@@ -526,6 +526,7 @@ public class ModuleClassLoader extends ConcurrentClassLoader {
final String oldMsg = e.getMessage();
final String newMsg = "Failed to link " + name.replace('.', '/') + " (" + module + ")";
ne = e.getClass().getConstructor(String.class).newInstance(oldMsg == null || oldMsg.isEmpty() ? newMsg : newMsg + ": " + oldMsg);
ne.setStackTrace(e.getStackTrace());
} catch (InstantiationException | NoSuchMethodException | InvocationTargetException | IllegalAccessException ignored) {
// just throw the original
throw e;
......