Bug 56453 - HSSFCellStyle getDataFormatStringCache must be used synchronized
Summary: HSSFCellStyle getDataFormatStringCache must be used synchronized
Status: RESOLVED DUPLICATE of bug 56563
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.10-FINAL
Hardware: PC Linux
: P2 major (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2014-04-24 12:35 UTC by Bernhard Seebass
Modified: 2014-05-26 20:17 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Seebass 2014-04-24 12:35:24 UTC
getDataFormatString may return random results due to the unsynchronized usage of the static fields lastDateFormat, lastFormats and getDataFormatStringCache.

The methods getDataFormatString and cloneStyleFrom should use

synchronized (HSSFCellStyle.class) {
Comment 1 Dominik Stadler 2014-05-26 20:17:27 UTC
I hopefully just fixed via Bug 56563 albeit a bit differently to avoid the expansive synchronization at this point.

*** This bug has been marked as a duplicate of bug 56563 ***