aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2017-08-24 19:46:39 +0000
committerDominik Stadler <centic@apache.org>2017-08-24 19:46:39 +0000
commit225285edc6363d6a7c239b3db98e76867acf7770 (patch)
tree9cdce1af4af4c023d2761a7976be5bef33a0e37b /src
parent264adcb02529f4c1581ab5ca2b1240ba9a8d468c (diff)
downloadpoi-225285edc6363d6a7c239b3db98e76867acf7770.tar.gz
poi-225285edc6363d6a7c239b3db98e76867acf7770.zip
Revert performance tuning done via Bug 61350 as it lead to problems when running multi-threaded large regression tests.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1806077 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/ooxml/java/org/apache/poi/POIXMLTypeLoader.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ooxml/java/org/apache/poi/POIXMLTypeLoader.java b/src/ooxml/java/org/apache/poi/POIXMLTypeLoader.java
index b518909088..911eef63d8 100644
--- a/src/ooxml/java/org/apache/poi/POIXMLTypeLoader.java
+++ b/src/ooxml/java/org/apache/poi/POIXMLTypeLoader.java
@@ -71,7 +71,9 @@ public class POIXMLTypeLoader {
// DEFAULT_XML_OPTIONS.setLoadEntityBytesLimit(4096);
// POI is not thread-safe - so we can switch to unsynchronized xmlbeans mode - see #61350
- DEFAULT_XML_OPTIONS.setUnsynchronized();
+ // Update: disabled again for now as it caused strange NPEs and other problems
+ // when reading properties in separate workbooks in multiple threads
+ // DEFAULT_XML_OPTIONS.setUnsynchronized();
Map<String, String> map = new HashMap<String, String>();
map.put("http://schemas.openxmlformats.org/drawingml/2006/main", "a");