File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed
src/main/java/com/fasterxml/jackson/databind Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -926,6 +926,10 @@ Vladimir Tsanev (tsachev@github)
926
926
to `handleUnknownVanilla()` to fix earlier #822
927
927
(2.10.0 )
928
928
929
+ Marcos Passos (marcospassos@github(
930
+ * Contributed #2432 : Add support for module bundles
931
+ (2.10.0 )
932
+
929
933
David Becker (dsbecker@github)
930
934
* Suggested #2433 : Improve `NullNode.equals()`
931
935
(2.10.0 )
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ Project: jackson-databind
10
10
(suggested by Craig P)
11
11
#2309 : READ_ENUMS_USING_TO_STRING doesn' t support null values
12
12
(reported, fix suggested by Ben A)
13
+ #2432: Add support for module bundles
14
+ (contributed by Marcos P)
13
15
#2442: `ArrayNode.addAll()` adds raw `null` values which cause NPE on `deepCopy()`
14
16
and `toString()`
15
17
(reported, fix contributed by Hesham M)
Original file line number Diff line number Diff line change @@ -76,16 +76,17 @@ public Object getTypeId() {
76
76
public abstract void setupModule (SetupContext context );
77
77
78
78
/**
79
- * Returns the list of dependent modules.
80
- *
79
+ * Returns the list of dependent modules this module has, if any.
81
80
* It is called to let modules register other modules as dependencies.
81
+ * Modules returned will be registered before this module is registered,
82
+ * in iteration order.
82
83
*
83
84
* @since 2.10
84
85
*/
85
86
public Iterable <? extends Module > getDependencies () {
86
87
return Collections .emptyList ();
87
88
}
88
-
89
+
89
90
/*
90
91
/**********************************************************
91
92
/* Helper types
Original file line number Diff line number Diff line change @@ -796,7 +796,10 @@ public ObjectMapper registerModule(Module module)
796
796
throw new IllegalArgumentException ("Module without defined version" );
797
797
}
798
798
799
- registerModules (module .getDependencies ());
799
+ // [databind#2432]: Modules may depend on other modules; if so, register those first
800
+ for (Module dep : module .getDependencies ()) {
801
+ registerModule (dep );
802
+ }
800
803
801
804
// And then call registration
802
805
module .setupModule (new Module .SetupContext ()
You can’t perform that action at this time.
0 commit comments