users@grizzly.java.net

org.glassfish.grizzly.Buffer.get(i) != org.glassfish.grizzly.Buffer.toByteBuffer().get(i)

From: Евгений Бушуев <yevgen.bushuyev_at_gmail.com>
Date: Thu, 27 Nov 2014 18:12:46 +0200

Hi!

Is it legal for a org.glassfish.grizzly.Buffer
(org.glassfish.grizzly.memory.HeapMemoryManager.TrimmableHeapBuffer#TrimmableHeapBuffer)
to return ByteBuffer from its toByteBuffer method so that ByteBuffer's
content won't be same as in original grizzly.Buffer?

Can't figure out why this happens, seems to be random. The grizzly.Buffer
instance is not composite.

Best regards, Eugene.