mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fei Wang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DIRMINA-840) Logic Error in ByteArrayPool implementation
Date Thu, 23 Jun 2011 03:01:53 GMT
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


View raw message