[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mina-commits
Subject:    [mina] branch 2.2.X updated: Fixed an infinite loop: we were calling buf.toString in buf.toString
From:       elecharny () apache ! org
Date:       2022-01-28 22:48:00
Message-ID: 164341008013.1637.15175318103790607966 () gitbox ! apache ! org
[Download RAW message or body]

This is an automated email from the ASF dual-hosted git repository.

elecharny pushed a commit to branch 2.2.X
in repository https://gitbox.apache.org/repos/asf/mina.git


The following commit(s) were added to refs/heads/2.2.X by this push:
     new d7932fb  Fixed an infinite loop: we were calling buf.toString in \
buf.toString d7932fb is described below

commit d7932fbb0f35f583e9c23438e7913214bd2fb16d
Author: emmanuel lecharny <elecharny@apache.org>
AuthorDate: Fri Jan 28 23:47:38 2022 +0100

    Fixed an infinite loop: we were calling buf.toString in buf.toString
---
 .../src/main/java/org/apache/mina/core/buffer/IoBufferHexDumper.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mina-core/src/main/java/org/apache/mina/core/buffer/IoBufferHexDumper.java \
b/mina-core/src/main/java/org/apache/mina/core/buffer/IoBufferHexDumper.java index \
                3c31629..cde71c7 100644
--- a/mina-core/src/main/java/org/apache/mina/core/buffer/IoBufferHexDumper.java
+++ b/mina-core/src/main/java/org/apache/mina/core/buffer/IoBufferHexDumper.java
@@ -104,7 +104,7 @@ class IoBufferHexDumper {
         final StringBuilder sb = new StringBuilder();
 
         sb.append("Source ");
-        sb.append(buf);
+        sb.append("0x").append(Integer.toHexString(buf.hashCode()));
         sb.append(" showing index ");
         sb.append(offset);
         sb.append(" through ");


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic