summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/Buffer.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/IceInternal/Buffer.java')
-rw-r--r--java/src/IceInternal/Buffer.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/java/src/IceInternal/Buffer.java b/java/src/IceInternal/Buffer.java
index e404bdc063c..8a7b8713dc4 100644
--- a/java/src/IceInternal/Buffer.java
+++ b/java/src/IceInternal/Buffer.java
@@ -161,10 +161,7 @@ public class Buffer
}
catch(OutOfMemoryError ex)
{
- Ice.MarshalException e = new Ice.MarshalException();
- e.reason = "OutOfMemoryError occurred while allocating a ByteBuffer";
- e.initCause(ex);
- throw e;
+ throw new Ice.MarshalException("OutOfMemoryError occurred while allocating a ByteBuffer", ex);
}
}