Skip to content

Commit

Permalink
HV-842 Make xmlInputFactory in XmlParserHelper an instance variable
Browse files Browse the repository at this point in the history
  • Loading branch information
BrentDouglas authored and hferentschik committed Dec 19, 2013
1 parent dd26a72 commit 4f4bd15
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -57,7 +57,9 @@ public class XmlParserHelper {
private static final int NUMBER_OF_SCHEMAS = 4;
private static final String DEFAULT_VERSION = "1.0";

private static final XMLInputFactory xmlInputFactory = XMLInputFactory.newInstance();
// xmlInputFactory used to be static in order to cache the factory, but that introduced a leakage of
// class loader in Wildfly. See HV-842
private final XMLInputFactory xmlInputFactory = XMLInputFactory.newInstance();

/**
* Read limit for the buffered input stream. Resetting the stream after
Expand Down

0 comments on commit 4f4bd15

Please sign in to comment.