https://issues.apache.org/bugzilla/show_bug.cgi?id=49188

           Summary: autoSizeColumn, ArrayOutOfBounds if more than
                    Short.MAX_VAULE rows
           Product: POI
           Version: 3.6
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created a worksheet with more tham Short.MAX_VALUE rows and 3 columns.
Called HSSFSheet.autoSizeColumn on each of the three columns, which caused the
exception below. Auto sizing works when number of rows is lower than
Short.MAX_VALUE

java.lang.ArrayIndexOutOfBoundsException: -32735
    at java.util.ArrayList.get(Unknown Source)
    at
org.apache.poi.hssf.model.WorkbookRecordList.get(WorkbookRecordList.java:50)
    at org.apache.poi.hssf.model.Workbook.getExFormatAt(Workbook.java:787)
    at org.apache.poi.hssf.usermodel.HSSFCell.getCellStyle(HSSFCell.java:906)
    at
org.apache.poi.hssf.usermodel.HSSFSheet.autoSizeColumn(HSSFSheet.java:1727)
    at
org.apache.poi.hssf.usermodel.HSSFSheet.autoSizeColumn(HSSFSheet.java:1662)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to