aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1342384 - /aries/branches/blueprint-0.3.2-fixes/util/src/main/java/org/apache/aries/util/BundleToClassLoaderAdapter.java
Date Thu, 24 May 2012 19:01:49 GMT
Author: dkulp
Date: Thu May 24 19:01:48 2012
New Revision: 1342384

URL: http://svn.apache.org/viewvc?rev=1342384&view=rev
Log:
Fix ioexception thing with java 5

Modified:
    aries/branches/blueprint-0.3.2-fixes/util/src/main/java/org/apache/aries/util/BundleToClassLoaderAdapter.java

Modified: aries/branches/blueprint-0.3.2-fixes/util/src/main/java/org/apache/aries/util/BundleToClassLoaderAdapter.java
URL: http://svn.apache.org/viewvc/aries/branches/blueprint-0.3.2-fixes/util/src/main/java/org/apache/aries/util/BundleToClassLoaderAdapter.java?rev=1342384&r1=1342383&r2=1342384&view=diff
==============================================================================
--- aries/branches/blueprint-0.3.2-fixes/util/src/main/java/org/apache/aries/util/BundleToClassLoaderAdapter.java
(original)
+++ aries/branches/blueprint-0.3.2-fixes/util/src/main/java/org/apache/aries/util/BundleToClassLoaderAdapter.java
Thu May 24 19:01:48 2012
@@ -90,7 +90,9 @@ public class BundleToClassLoaderAdapter 
 
       if (cause instanceof IOException) throw (IOException)cause;
       if (cause instanceof RuntimeException) throw (RuntimeException)cause;
-      throw new IOException(name, cause);
+      IOException ioe = new IOException(name);
+      ioe.initCause(e);
+      throw ioe;
     }
 
     if (urls == null) {



Mime
View raw message