aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBruce Yinhe <[email protected]>2014-07-09 10:21:36 +0200
committerBruce Yinhe <[email protected]>2014-07-09 10:21:36 +0200
commit3e7944663817eae446b3c96820e1f4566d952ea6 (patch)
tree73ae0e426d0062804b2d8c2c7a28ef29968d9803 /lib
parent1cfd051b778851a17ae46b5cb72a5c985488c96c (diff)
parent94285675ec46fe935e10f34c706adc4a3b333e1d (diff)
downloadotp-3e7944663817eae446b3c96820e1f4566d952ea6.tar.gz
otp-3e7944663817eae446b3c96820e1f4566d952ea6.tar.bz2
otp-3e7944663817eae446b3c96820e1f4566d952ea6.zip
Merge branch 'maint'
Diffstat (limited to 'lib')
-rw-r--r--lib/jinterface/java_src/com/ericsson/otp/erlang/OtpInputStream.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpInputStream.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpInputStream.java
index 0d1342d796..f813594541 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpInputStream.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpInputStream.java
@@ -21,6 +21,7 @@ package com.ericsson.otp.erlang;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.math.BigDecimal;
+import java.util.Arrays;
/**
* Provides a stream for decoding Erlang terms from external format.
@@ -819,7 +820,7 @@ public class OtpInputStream extends ByteArrayInputStream {
if (unsigned) {
if (c < 0) {
throw new OtpErlangDecodeException("Value not unsigned: "
- + b);
+ + Arrays.toString(b));
}
while (b[i] == 0) {
i++; // Skip leading zero sign bytes
@@ -844,7 +845,7 @@ public class OtpInputStream extends ByteArrayInputStream {
if (b.length - i > 8) {
// More than 64 bits of value
throw new OtpErlangDecodeException(
- "Value does not fit in long: " + b);
+ "Value does not fit in long: " + Arrays.toString(b));
}
// Convert the necessary bytes
for (v = c < 0 ? -1 : 0; i < b.length; i++) {