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=43086>.
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=43086





------- Additional Comments From [EMAIL PROTECTED]  2007-11-06 05:28 -------
Improper usage. 

The maximum number of fonts in a workbook is 32767 ( the maximum positive 
short).   
You are creating a new font for each cell in a loop and finally the font index
becomes negative. 
The subsequent call of HSSFSheet.autoSizeColumn results in
ArrayIndexOutOfBoundsException.

See how I suggest rewriting your sample code. It should work fine. 

P.S. I'm going to change HSSFWorkbook.createFont and throw an exception if the
font index becomes greater than 32767. 
This way users will get a clearer indication of the problem. I will commit the
fix in a little while.

Regards,
Yegor

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to