commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1439076 - /commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java
Date Sun, 27 Jan 2013 12:58:35 GMT
Author: sebb
Date: Sun Jan 27 12:58:34 2013
New Revision: 1439076

URL: http://svn.apache.org/viewvc?rev=1439076&view=rev
Log:
constructor IOException(java.net.URISyntaxException) is Java 1.6+

Modified:
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java?rev=1439076&r1=1439075&r2=1439076&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java
Sun Jan 27 12:58:34 2013
@@ -82,7 +82,10 @@ public abstract class AbstractTestCase e
         try {
             uri = url.toURI();
         } catch (java.net.URISyntaxException ex) {
-            throw new IOException(ex);
+//          throw new IOException(ex); // JDK 1.6+
+            IOException ioe = new IOException();
+            ioe.initCause(ex);
+            throw ioe;
         }
         return new File(uri);
     }



Mime
View raw message