Issue #3582 Fix toDetailString buffer modify
Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
parent
2d2426520b
commit
f1d598acc6
|
@ -1082,6 +1082,8 @@ public class BufferUtil
|
|||
|
||||
private static void appendDebugString(StringBuilder buf,ByteBuffer buffer)
|
||||
{
|
||||
// Take a readonly copy so we can adjust the limit
|
||||
buffer = buffer.asReadOnlyBuffer();
|
||||
try
|
||||
{
|
||||
for (int i = 0; i < buffer.position(); i++)
|
||||
|
|
Loading…
Reference in New Issue