Issue #3582 Fix toDetailString buffer modify

Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
Greg Wilkins 2019-04-29 16:59:26 +02:00
parent 2d2426520b
commit f1d598acc6
1 changed files with 2 additions and 0 deletions

View File

@ -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++)