summaryrefslogtreecommitdiff
path: root/java/src
diff options
context:
space:
mode:
Diffstat (limited to 'java/src')
-rw-r--r--java/src/IceInternal/Buffer.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/src/IceInternal/Buffer.java b/java/src/IceInternal/Buffer.java
index 8a7b8713dc4..a98d5fc7ad0 100644
--- a/java/src/IceInternal/Buffer.java
+++ b/java/src/IceInternal/Buffer.java
@@ -161,6 +161,7 @@ public class Buffer
}
catch(OutOfMemoryError ex)
{
+ _capacity = b.capacity(); // Restore the previous capacity.
throw new Ice.MarshalException("OutOfMemoryError occurred while allocating a ByteBuffer", ex);
}
}