Skip to content

Commit

Permalink
Java 9 declares java.activation as optional module.
Browse files Browse the repository at this point in the history
  • Loading branch information
joehni committed Apr 7, 2017
1 parent ae9eaa5 commit 4c3c487
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xstream/src/java/com/thoughtworks/xstream/XStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,11 @@ protected void setupAliases() {
alias("awt-color", JVM.loadClassForName("java.awt.Color", false));
alias("awt-font", JVM.loadClassForName("java.awt.Font", false));
alias("awt-text-attribute", JVM.loadClassForName("java.awt.font.TextAttribute"));
alias("activation-data-flavor", JVM.loadClassForName("javax.activation.ActivationDataFlavor"));
}

Class<?> type = JVM.loadClassForName("javax.activation.ActivationDataFlavor");
if (type != null) {
alias("activation-data-flavor", type);
}

if (JVM.isSQLAvailable()) {
Expand Down

0 comments on commit 4c3c487

Please sign in to comment.