aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/egiz/moazs/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/gv/egiz/moazs/util')
-rw-r--r--src/main/java/at/gv/egiz/moazs/util/JAXBClassNotFoundFix.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/util/JAXBClassNotFoundFix.java b/src/main/java/at/gv/egiz/moazs/util/JAXBClassNotFoundFix.java
index 9e72286..c91860b 100644
--- a/src/main/java/at/gv/egiz/moazs/util/JAXBClassNotFoundFix.java
+++ b/src/main/java/at/gv/egiz/moazs/util/JAXBClassNotFoundFix.java
@@ -13,6 +13,8 @@ public class JAXBClassNotFoundFix {
private static final Logger log = LoggerFactory.getLogger(JAXBClassNotFoundFix.class);
+ private JAXBClassNotFoundFix() {}
+
/**
* Solves JAXB's "ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory" in Java >= 9
* by running func in a dedicated thread which has its context classloader replaced with a classloader that finds
@@ -44,6 +46,7 @@ public class JAXBClassNotFoundFix {
t.join();
} catch (InterruptedException ex) {
log.error("Interrupted. ", ex);
+ throw moaZSException("Interrupted. ", ex);
}
if (error[0] != null) {