Github user m4rkmckenna commented on a diff in the pull request:
https://github.com/apache/brooklyn-server/pull/593#discussion_r105952235
--- Diff:
core/src/main/java/org/apache/brooklyn/util/core/xstream/XmlSerializer.java ---
@@ -80,6 +80,11 @@ protected MapperWrapper wrapMapper(MapperWrapper next) {
xstream.registerConverter(new EnumCaseForgivingConverter());
xstream.registerConverter(new Inet4AddressConverter());
+
+ // See ObjectWithDefaultStringImplConverter (and its usage) for
why we want to auto-detect
+ // annotations (usages of this is in the camp project, so we can't
just list it statically
+ // here unfortunately).
+ xstream.autodetectAnnotations(true);
--- End diff --
From http://x-stream.github.io/annotations-tutorial.html#AutoDetect
> In auto-detection mode XStream will have to examine any unknown class
type for annotations. This will slow down the marshalling process until all
processed types have been examined once.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---