Summary: | EscherOptRecord isn't serialising Properties Correctly | ||
---|---|---|---|
Product: | POI | Reporter: | Nick Burch <apache> |
Component: | HDF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | P2 | ||
Version: | 3.0-dev | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other |
Description
Nick Burch
2006-06-13 13:22:16 UTC
I also discovered this bug some time ago but put it aside for a while until my hands are free. The problem is in org.apache.poi.ddf.EscherArrayProperty. EscherArrayProperty.checkComplexData overrides the record data if the size of the array is 0. Regards, Yegor From some more debugging, it looks like my problem is an EscherArrayProperty, but not an empty one. It's a problem in the simple part, more debugging is required though. Ah ha! After much poking with a debugger, I finally properly understand Glen's cryptic comment in setArrayData I've added a new flag, to record when the simple part's size doesn't include the header length, so we can write it out the same. I'm not sure if this'll help the zero size or not though, I'll have to find one to be sure. |