Author: centic
Date: Mon Aug  7 11:11:45 2023
New Revision: 1911504

URL: http://svn.apache.org/viewvc?rev=1911504&view=rev
Log:
Open configuration file for integration-tests read-only to not fail if the file 
is opened by an Application locally

Modified:
    poi/trunk/poi-integration/src/test/java/org/apache/poi/stress/StressMap.java

Modified: 
poi/trunk/poi-integration/src/test/java/org/apache/poi/stress/StressMap.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/poi-integration/src/test/java/org/apache/poi/stress/StressMap.java?rev=1911504&r1=1911503&r2=1911504&view=diff
==============================================================================
--- 
poi/trunk/poi-integration/src/test/java/org/apache/poi/stress/StressMap.java 
(original)
+++ 
poi/trunk/poi-integration/src/test/java/org/apache/poi/stress/StressMap.java 
Mon Aug  7 11:11:45 2023
@@ -46,7 +46,7 @@ public class StressMap {
     private final Pattern SCRATCH_HANDLER = 
Pattern.compile("(HSLF|HWPF|HSMF|HMEF)");
 
     public void load(File mapFile) throws IOException {
-        try (Workbook wb = WorkbookFactory.create(mapFile)) {
+        try (Workbook wb = WorkbookFactory.create(mapFile, null, true)) {
             readExMap(wb.getSheet("Exceptions"));
             readHandlerMap(wb.getSheet("Handlers"));
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to