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

Buffers.addRandom(ByteBuffer target, Random random) throws IllegalArgumentException if target.remaining() == 0

XMLWordPrintable

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

      if(target.remaining() == 0) return;

      Show
      if(target.remaining() == 0) return;

      Buffers.addRandom(ByteBuffer target, Random random) throws IllegalArgumentException if target buffer has no remaining space.
      The exception is thrown by the Random.nextInt(0) call performed by Buffers.addRandom(ByteBuffer, Random, int).

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

              Created:
              Updated:
              Resolved: