poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r629849 - in /poi/trunk/src/testcases/org/apache/poi/hssf: data/OddStyleRecord.xls usermodel/TestBugs.java
Date Thu, 21 Feb 2008 16:22:19 GMT
Author: nick
Date: Thu Feb 21 08:22:18 2008
New Revision: 629849

URL: http://svn.apache.org/viewvc?rev=629849&view=rev
Log:
Add a disabled test for a file with whacky StyleRecords that trigger an AIOOB

Added:
    poi/trunk/src/testcases/org/apache/poi/hssf/data/OddStyleRecord.xls   (with props)
Modified:
    poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java

Added: poi/trunk/src/testcases/org/apache/poi/hssf/data/OddStyleRecord.xls
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/data/OddStyleRecord.xls?rev=629849&view=auto
==============================================================================
Binary file - no diff available.

Propchange: poi/trunk/src/testcases/org/apache/poi/hssf/data/OddStyleRecord.xls
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java?rev=629849&r1=629848&r2=629849&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java Thu Feb 21 08:22:18
2008
@@ -1089,6 +1089,24 @@
         //  "EmptyStackException"
         //assertEquals("=CHOOSE(2,A2,A3,A4)", c2.getCellFormula());
     }
+    
+    /**
+     * Date: Tue, 19 Feb 2008 05:03:47 -0800 (PST)
+     * From: Setya <jsetya@gmail.com>
+     * Subject: Exception when parsing excel file
+     */
+    public void BROKENtest20080219() throws Exception {
+        FileInputStream in = new FileInputStream(new File(cwd, "OddStyleRecord.xls"));
+        
+        // Blows up with an ArrayIndexOutOfBounds
+        //  when creating a StyleRecord
+        // However, our code matches the latest Microsoft
+        //  docs, so no idea what's wrong
+        HSSFWorkbook wb = new HSSFWorkbook(in);
+        in.close();
+        
+        assertEquals(1, wb.getNumberOfSheets());
+    }
 }
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message