Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-840

Logic Error in ByteArrayPool implementation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.0.5
    • Component/s: Core
    • Labels:
      None

      Description

      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();

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wfxiang08 Fei Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.1h
                0.1h
                Remaining:
                Remaining Estimate - 0.1h
                0.1h
                Logged:
                Time Spent - Not Specified
                Not Specified