summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-01-05 06:42:26 (EST)
committerEike Stepper2008-01-05 06:42:26 (EST)
commitb58502a6a71376411be5ea19ef8be583e8d9e384 (patch)
tree9193029137db4e4ead70cf3174dc56b24a4394d4
parenteab89b025de18585a8a830d8f7ab4c65bb081f55 (diff)
downloadcdo-b58502a6a71376411be5ea19ef8be583e8d9e384.zip
cdo-b58502a6a71376411be5ea19ef8be583e8d9e384.tar.gz
cdo-b58502a6a71376411be5ea19ef8be583e8d9e384.tar.bz2
[214374] Sending deltas doesn't adjust CDOIDs
https://bugs.eclipse.org/bugs/show_bug.cgi?id=214374
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/BugzillasTest.java2
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/io/IORuntimeException.java12
2 files changed, 14 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/BugzillasTest.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/BugzillasTest.java
index 2161cdb..2dba7aa 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/BugzillasTest.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/BugzillasTest.java
@@ -29,6 +29,8 @@ import junit.framework.Assert;
public class BugzillasTest extends AbstractCDOTest
{
/**
+ * Sending deltas doesn't adjust CDOIDs
+ *
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=214374
*/
public void test214374() throws Exception
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/io/IORuntimeException.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/io/IORuntimeException.java
index f61011c..f764b6b 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/io/IORuntimeException.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/io/IORuntimeException.java
@@ -10,6 +10,8 @@
**************************************************************************/
package org.eclipse.net4j.util.io;
+import java.io.IOException;
+
/**
* @author Eike Stepper
*/
@@ -35,4 +37,14 @@ public class IORuntimeException extends RuntimeException
{
super(message, cause);
}
+
+ public void unwrapIOException() throws IOException
+ {
+ if (getCause() instanceof IOException)
+ {
+ throw (IOException)getCause();
+ }
+
+ throw this;
+ }
}