Nope you don't need to call release twice to free it.
From basic analysis there seems to be a minor bug (may be) in the
implementation
Essentially, the release() function checks for refCount (Line 447) and
checks for less than equal to 0. If the condition is true
it throws an
Hi All,
I've written small program to test bytebuffer acquire and release
methods.
Program:
import org.apache.mina.common.ByteBuffer;
public class ByteBufferTest {
public static void test() {
try{
ByteBuffer b = ByteBuffer.allocate(4000);
byte
Rajeshwari M wrote:
Hi All,
Hi,
I've written small program to test bytebuffer acquire and release
methods.
Program:
import org.apache.mina.common.ByteBuffer;
public class ByteBufferTest {
public static void test() {
try{
ByteBuffer b =