Summary: | Row number wraps on values greater than 65535 | ||
---|---|---|---|
Product: | POI | Reporter: | Conrad Roche <new_connie> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 1.0.2 | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | Windows XP |
Description
Conrad Roche
2004-05-03 19:56:33 UTC
In this case it seems that it's Java wrapping the value. (short)256 = 256 because short is 16 bits. (short)65536 = 0 because only the last 16 bits of the value are being used. Unless we change the API to use ints for the row numbers, this wont be fixed. As Glen points out this is a java vm behaviour. Jason |