Logic Error in ByteArrayPool implementation
-------------------------------------------
Key: DIRMINA-840
URL: https://issues.apache.org/jira/browse/DIRMINA-840
Project: MINA
Issue Type: Bug
Components: Core
Affects Versions: 2.0.4
Reporter: Fei Wang
Priority: Minor
The is some logical error in ByteArrayPool#create(int size).
The two lines below should be changed to
if (!freeBuffers.isEmpty()) {
DirectBufferByteArray ba = freeBuffers.get(bits).pop();
if (!freeBuffers.get(bits).isEmpty()) {
DirectBufferByteArray ba = freeBuffers.get(bits).pop();
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira