commit | 37061cd3bd1b866c51643b4f42eebb80b889bbfa | [log] [tgz] |
---|---|---|
author | Karl Pauls <pauls@apache.org> | Tue Sep 01 19:16:14 2009 +0000 |
committer | Karl Pauls <pauls@apache.org> | Tue Sep 01 19:16:14 2009 +0000 |
tree | 7933432a69f72bc8a9144f2199b06344ceef442c | |
parent | 2252e95e213dd162be3a8bfe512969b64b385996 [diff] |
Avouid using RuntimeException constructor which is not available before java5 git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@810182 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java b/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java index 61d3cf0..7d4f2a9 100644 --- a/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java +++ b/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java
@@ -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
diff --git a/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java b/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java index 29e1f19..492fb31 100644 --- a/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java +++ b/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java
@@ -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()); } } }