Skip to content
Permalink
Browse files
[JENKINS-18775] Noting that this usage of XStream is unsupported and …
…could cause future problems.
  • Loading branch information
jglick committed Aug 27, 2013
1 parent d19a70a commit 1d20c524e14353aa2c047586a300180d1cdf15d2
Showing with 1 addition and 0 deletions.
  1. +1 −0 core/src/main/java/hudson/util/XStream2.java
@@ -159,6 +159,7 @@ else if (type != null && ImmutableList.class.isAssignableFrom(type))
}
});
AnnotationMapper a = new AnnotationMapper(m, getConverterRegistry(), getConverterLookup(), getClassLoader(), getReflectionProvider(), getJvm());
// TODO acc. to XSTR-744 this means that an XStream2 instance is not thread-safe and we would need a pool:
a.autodetectAnnotations(true);

mapperInjectionPoint = new MapperInjectionPoint(a);

0 comments on commit 1d20c52

Please sign in to comment.