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 29976] New: - [PATCH] HSSF hyperlink formula size problem
Date Thu, 08 Jul 2004 14:41:23 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=29976>.
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=29976

[PATCH] HSSF hyperlink formula size problem

           Summary: [PATCH] HSSF hyperlink formula size problem
           Product: POI
           Version: 2.5
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HSSF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: bernard.chesnoy@voxmobili.com


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.

---------------------------------------------------------------------
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