Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2010-02-05 17:05:20 -0500
committerThomas Watson2010-02-05 17:05:20 -0500
commit030cd00210a0f6142b353367f777bb576babe8c4 (patch)
treeb9f5bbf72b56ef2f6c2908fb38ad92247c476498 /bundles/org.eclipse.osgi/resolver
parentaf91773a0db541a7854d571f191a2c79bd90f324 (diff)
downloadrt.equinox.framework-030cd00210a0f6142b353367f777bb576babe8c4.tar.gz
rt.equinox.framework-030cd00210a0f6142b353367f777bb576babe8c4.tar.xz
rt.equinox.framework-030cd00210a0f6142b353367f777bb576babe8c4.zip
Bug 302011 - Should provide causing exception where possible
Diffstat (limited to 'bundles/org.eclipse.osgi/resolver')
-rw-r--r--bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/BundleDescriptionImpl.java4
-rw-r--r--bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateBuilder.java4
-rw-r--r--bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateReader.java6
3 files changed, 7 insertions, 7 deletions
diff --git a/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/BundleDescriptionImpl.java b/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/BundleDescriptionImpl.java
index bc3c653ed..26e6d1550 100644
--- a/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/BundleDescriptionImpl.java
+++ b/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/BundleDescriptionImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2003, 2009 IBM Corporation and others.
+ * Copyright (c) 2003, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -570,7 +570,7 @@ public final class BundleDescriptionImpl extends BaseDescriptionImpl implements
reader.fullyLoad(this);
return this.lazyData;
} catch (IOException e) {
- throw new RuntimeException(e.getMessage()); // TODO not sure what to do here!!
+ throw new RuntimeException(e.getMessage(), e); // TODO not sure what to do here!!
}
}
}
diff --git a/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateBuilder.java b/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateBuilder.java
index 4ad1f6883..871132649 100644
--- a/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateBuilder.java
+++ b/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateBuilder.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2003, 2009 IBM Corporation and others.
+ * Copyright (c) 2003, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -388,7 +388,7 @@ class StateBuilder {
} catch (Exception e) { // got some reflection exception
if (e instanceof RuntimeException)
throw (RuntimeException) e;
- throw new RuntimeException(e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
}
else if (ATTR_TYPE_VERSION.equals(type))
putValue = new Version(value);
diff --git a/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateReader.java b/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateReader.java
index 744cb0f59..148063b65 100644
--- a/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateReader.java
+++ b/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateReader.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2003, 2009 IBM Corporation and others.
+ * Copyright (c) 2003, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -421,7 +421,7 @@ final class StateReader {
} catch (Exception e) { // got some reflection exception
if (e instanceof RuntimeException)
throw (RuntimeException) e;
- throw new RuntimeException(e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
}
}
result.put(key, value);
@@ -652,7 +652,7 @@ final class StateReader {
for (int i = 0; i < numBundles; i++)
readBundleDescriptionLazyData(in, 0);
} catch (IOException ioe) {
- throw new RuntimeException(); // TODO need error message here
+ throw new RuntimeException(ioe.getMessage(), ioe); // TODO need error message here
} finally {
if (in != null)
try {

Back to the top