poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28749] New: - Row number wraps on values greater than 65535
Date Mon, 03 May 2004 19:56:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28749>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28749

Row number wraps on values greater than 65535

           Summary: Row number wraps on values greater than 65535
           Product: POI
           Version: 1.0.2
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HSSF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: new_connie@hotmail.com


The row number wraps around for higher row numbers (>65535).
<code>
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("65536");

HSSFRow row = sheet.createRow((short)65536);
HSSFCell cell = row.createCell((short)0);
cell.setCellValue(65536);
</code>

The above code sets the value in the cell A1. 
[due to the cast (short)65536]

Shouldn't the behavior be similar to row.createCell((short)256) - which throws 
an exception? 

cheers
Conrad

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org


Mime
View raw message