harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r703714 - /harmony/enhanced/classlib/trunk/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/GZIPOutputStreamTest.java
Date Sat, 11 Oct 2008 19:22:06 GMT
Author: ndbeyer
Date: Sat Oct 11 12:22:06 2008
New Revision: 703714

URL: http://svn.apache.org/viewvc?rev=703714&view=rev
Log:
use a higher-level exception in catch, to allow Mac OS X JRE to run test correctly

Modified:
    harmony/enhanced/classlib/trunk/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/GZIPOutputStreamTest.java

Modified: harmony/enhanced/classlib/trunk/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/GZIPOutputStreamTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/GZIPOutputStreamTest.java?rev=703714&r1=703713&r2=703714&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/GZIPOutputStreamTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/GZIPOutputStreamTest.java
Sat Oct 11 12:22:06 2008
@@ -147,7 +147,7 @@
 			int r = 0;
 			try {
 				outGZIP.write(byteArray, 0, 11);
-			} catch (ArrayIndexOutOfBoundsException e) {
+			} catch (IndexOutOfBoundsException e) {
 				r = 1;
 			}
 			assertEquals("out of bounds exception is not present", 1, r);



Mime
View raw message