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

IoBuffer GetSlice throw an IllegalArgumentException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.7
    • Fix Version/s: 2.0.8
    • Component/s: Core
    • Labels:
      None

      Description

      Calling IoBuffer.Getslice(1,3) on a iobuffer with 36 element call an IllegalArgumentException for the function Buffer position(int newPosition)
      called at position(pos);

        Activity

        Hide
        elecharny Emmanuel Lecharny added a comment -

        Good catch !

        There is a bug in the getSlice() method : we try to set the position before setting the limit, which leads to an error if the buffer was not flipped before we do a getSlice()

        Show
        elecharny Emmanuel Lecharny added a comment - Good catch ! There is a bug in the getSlice() method : we try to set the position before setting the limit, which leads to an error if the buffer was not flipped before we do a getSlice()
        Hide
        elecharny Emmanuel Lecharny added a comment -

        Fixed with Commit: 0a30a079fe2dca721cc6f049d0b4563d98844268

        Show
        elecharny Emmanuel Lecharny added a comment - Fixed with Commit: 0a30a079fe2dca721cc6f049d0b4563d98844268

          People

          • Assignee:
            Unassigned
            Reporter:
            jcarnus Jeremy
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development