Summary: | Multiple getFormat(String) calls blows document | ||
---|---|---|---|
Product: | POI | Reporter: | Adrian Preston <APreston> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | P3 | ||
Version: | 2.0-pre3 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Attachments: | Output XLS generated by sample code. |
Description
Adrian Preston
2003-02-04 12:07:33 UTC
Created attachment 4718 [details]
Output XLS generated by sample code.
if this is still true...thats bad oddly this file works in Excel v.X Look at Bug 19638. This will solve this problem But not properly. It is using the user model in the low level model. Plus, if you look, HSSFDataFormat already keeps a hash. Finally, most users go in through the HSSFWorkbook and would not have access to the Workbook object to call the validate on. Commited fix that ensured the same HSSFDataFormat object is returned for each createDataFormat. This ensures that the hash table is kept up to date without the need for sharing. |