https://issues.apache.org/bugzilla/show_bug.cgi?id=44627
Summary: [PATCH] POILogFactory thread safety issue
Product: POI
Version: 3.0-dev
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: POI Overall
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Created an attachment (id=21678)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=21678)
svn diff text for POILogFactory thread safety issue
POILogFactory is not threadsafe and even with the default NullLogger I am
getting JVM lockups in a multi-threaded environment. Since the POILogger
property is really only used for debugging POI itself according to the docs, I
provide a patch that makes the default (i.e. no logger specified) operation
thread safe.
Alternatively the entire mechanism could be made threadsafe by switching the
map in POILogFactory from a HashMap to a Hashtable, or synchronizing the
getLogger method. Since it is rarely used, that seemed a little heavy handed to
propose initially.
The patch is svn diff text. The only file modified is POILogFactory.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]