Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 1d20c52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/hudson/util/XStream2.java
Expand Up @@ -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);
Expand Down

0 comments on commit 1d20c52

Please sign in to comment.