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 27929] - [PATCH] Opening XLS file with drop down list throws ArrayIndexOutofBoundsException
Date Sun, 27 Jun 2004 15:21:54 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=27929>.
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=27929

[PATCH] Opening XLS file with drop down list throws ArrayIndexOutofBoundsException





------- Additional Comments From zalewski@optonline.net  2004-06-27 15:21 -------
Looks like I goofed. That last testcase should be

public void testParseEnd() {
  Record r = SubRecord.createSubRecord(
      (short)0x0000, (short)0x0000, dataAutoFilter, 0x0046
  );
  assertEquals( "ftEnd is 4 bytes", 4, r.getRecordSize());
  assertEquals( 
      "ftEnd is a EndSubRecord"
    , "org.apache.poi.hssf.record.EndSubRecord"
    , r.getClass().getName()
  );
}

Nothing fancy about this testcase. It merely takes the actual bytes from an OBJ 
record that describes a dropdown, which was causing a problem in this report. 
Since I needed to change that method (SubRecord.createSubRecord), and verifies 
that the subrecords are all parsed and created properly.

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