Uploaded image for project: 'XNIO'
  1. XNIO
  2. XNIO-125

Buffers.copy(int, ByteBuffer, ByteBuffer[], int, int) overwrites sources

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.1.0.Beta2
    • None
    • api
    • None
    • Workaround Exists
    • Hide

      Sources should be copied into destination.

      Show
      Sources should be copied into destination.

      The method Buffers.copy(int count, ByteBuffer destination, ByteBuffer[] sources, int, int) is copying destination into sources, while the correct would be copying sources into destination.
      As a result, sources is overwritten and destination is unaffected.

            flaviarnn Flavia Rainone
            flaviarnn Flavia Rainone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: