If you give an hyperlink with a size between 127 and 255 length, with the sources I got an ArrayOutOfBoundException, and with the binary distribution everything goes good until you try to read the .xls, excel can't do it (unreadable file...). It seems, that the length is keep in a Byte, so when it is cast in an int it gives a negative length. Class modified : org.apache.poi.hssf.record.formula.StringPtg file added : HyperlinkFormula.java a test case I correct this using an int for the length and a mask to remove all unneeded bits. As I'm a newbie tell me if I do something wrong.
Created attachment 12062 [details] contains the patch and the test case, format (tar and bz2)
thanks in particular for the testcase. I'll check it out.
bernard: I'm having trouble untaring your patch. I'm getting the following errors: tar: This does not look like a tar archive tar: Skipping to next header tar: Archive contains obsolescent base-64 headers tar: Error exit delayed from previous errors
Created attachment 12322 [details] tar and bz2 compression
The new archive seems to be good, sorry for the inconvenience, I don't what I messed up with this file.
Committed to HEAD