Bug 45145

Summary: RowRecordsAggregate must come before ValueRecordsAggregate
Product: POI Reporter: Josh Micich <josh>
Component: HSSFAssignee: POI Developers List <dev>
Severity: normal    
Priority: P2    
Version: 3.0-dev   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description Josh Micich 2008-06-05 15:20:05 UTC
The following code:
causes the new Sheet object to have the ValueRecordsAggregate listed before the RowRecordsAggregate.

This causes a bug in Sheet.serializeIndexRecord() where 'sheetRecSize' incorrectly includes the VRA size, thus causing the INDEX record to have wrong offsets to the DBCELL records.  When a workbookis read from file, the RRA is created before the VRA, so the bug does not occur in that case. Re-serializing a workbook fixes the incorrect INDEX record.
Comment 1 Josh Micich 2008-06-05 15:42:27 UTC
Fixed in svn r663765.