Skip to content

Commit 44195a8

Browse files
author
Xakep_SDK
committed
Make java.xml module optional (static)
Serialization and deserialization of javax.xml classes (module java.xml) is handled by com.fasterxml.jackson.databind.ext.OptionalHandlerFactory, it already handles classes from java.xml module as optional.
1 parent 5fd7cc4 commit 44195a8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/com/fasterxml/jackson/databind/ext/OptionalHandlerFactory.java

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public class OptionalHandlerFactory implements java.io.Serializable
4040
// // Since 2.7, we will assume DOM classes are always found, both due to JDK 1.6 minimum
4141
// // and because Android (and presumably GAE) have these classes
4242

43+
// // 02-Nov-2020, Xakep_SDK: java.xml module classes may be missing
44+
// // in actual runtime, if module java.xml is not present
4345
private final static Class<?> CLASS_DOM_NODE;
4446
private final static Class<?> CLASS_DOM_DOCUMENT;
4547

src/moditect/module-info.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// these types were suggested as transitive, but aren't actually
88
// exposed externally (only within internal APIs)
99
requires java.sql;
10-
requires java.xml;
10+
requires static java.xml;
1111

1212
exports com.fasterxml.jackson.databind;
1313
exports com.fasterxml.jackson.databind.annotation;

0 commit comments

Comments
 (0)