Skip to content

Commit

Permalink
ADDR-137 - Address Hierarchy Loader fails to load address configurati…
Browse files Browse the repository at this point in the history
…on on 2.7.x
  • Loading branch information
mseaton committed Jan 30, 2025
1 parent 32ab049 commit 7b65c11
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,13 @@ public static XStream getSerializer() {
XStream xs = new XStream(new DomDriver());
try {
Method allowTypeHierarchy = XStream.class.getMethod("allowTypeHierarchy", Class.class);
log.warn("Allowing types for address hierarchy");
allowTypeHierarchy.invoke(xs, AddressConfiguration.class);
allowTypeHierarchy.invoke(xs, AddressComponent.class);
allowTypeHierarchy.invoke(xs, AddressHierarchyFile.class);
log.debug("Successfully configured address configuration serializer with allowed types");
}
catch (Exception e) {
log.error("Error invoking address hierarchy allowTypes", e);
log.debug("Error configuring address configuration serializer with allowed types", e);
}
xs.alias("addressConfiguration", AddressConfiguration.class);
xs.alias("addressComponent", AddressComponent.class);
Expand Down

0 comments on commit 7b65c11

Please sign in to comment.