aboutsummaryrefslogtreecommitdiffstats
path: root/lib/jinterface
diff options
context:
space:
mode:
authorBruce Yinhe <[email protected]>2014-07-09 10:14:28 +0200
committerBruce Yinhe <[email protected]>2014-07-09 10:14:28 +0200
commit94285675ec46fe935e10f34c706adc4a3b333e1d (patch)
treee288d2c161ae4305aecc206a9fd3975984e4ee91 /lib/jinterface
parenta801af8e99b847bc4bd00bf8ba76a638ff90768f (diff)
parentdde150ead634973595d16a40dca7bfe86abae4f2 (diff)
downloadotp-94285675ec46fe935e10f34c706adc4a3b333e1d.tar.gz
otp-94285675ec46fe935e10f34c706adc4a3b333e1d.tar.bz2
otp-94285675ec46fe935e10f34c706adc4a3b333e1d.zip
Merge branch 'vladdu/jinterface_stream_exceptions' into maint
OTP-12049 * vladdu/jinterface_stream_exceptions: jinterface: OtpInputStream exceptions show useless value
Diffstat (limited to 'lib/jinterface')
-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++) {