felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject svn commit: r810182 - in /felix/trunk/framework/src/main/java/org/apache/felix/framework: ModuleImpl.java cache/JarContent.java
Date Tue, 01 Sep 2009 19:16:14 GMT
Author: pauls
Date: Tue Sep  1 19:16:14 2009
New Revision: 810182

URL: http://svn.apache.org/viewvc?rev=810182&view=rev
Log:
Avouid using RuntimeException constructor which is not available before java5

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java
    felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java?rev=810182&r1=810181&r2=810182&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java Tue Sep
 1 19:16:14 2009
@@ -1290,7 +1290,7 @@
                 }
                 catch (Exception ex)
                 {
-                    throw new RuntimeException("Unable to create module class loader.", ex);
+                    throw new RuntimeException("Unable to create module class loader: " +
 ex.getMessage());
                 }
             }
             else

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java?rev=810182&r1=810181&r2=810182&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java Tue
Sep  1 19:16:14 2009
@@ -441,7 +441,7 @@
             }
             catch (IOException ex)
             {
-                throw new RuntimeException("Unable to open JAR file, probably deleted.",
ex);
+                throw new RuntimeException("Unable to open JAR file, probably deleted: "
+ ex.getMessage());
             }
         }
     }



Mime
View raw message