Bug 45145 - RowRecordsAggregate must come before ValueRecordsAggregate
Summary: RowRecordsAggregate must come before ValueRecordsAggregate
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.0-dev
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2008-06-05 15:20 UTC by Josh Micich
Modified: 2008-06-05 15:42 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
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.