Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8322877

java/io/BufferedInputStream/TransferTo.java failed with IndexOutOfBoundsException

XMLWordPrintable

    • b04

      ----------System.out:(48/3152)----------
      Seed from RandomFactory = -3824635998985927190L
      test TransferTo.testNullPointerException(): success
      test TransferTo.testStreamContents(): failure
      java.lang.IndexOutOfBoundsException: Range [5825, 5825 + 8192) out of bounds for length 8192
      at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
      at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromIndexSize(Preconditions.java:118)
      at java.base/jdk.internal.util.Preconditions.checkFromIndexSize(Preconditions.java:397)
      at java.base/java.util.Objects.checkFromIndexSize(Objects.java:417)
      at java.base/java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:131)
      at java.base/java.io.BufferedInputStream.implTransferTo(BufferedInputStream.java:647)
      at java.base/java.io.BufferedInputStream.transferTo(BufferedInputStream.java:631)
      at TransferTo.checkTransferredContents(TransferTo.java:182)
      at TransferTo.testStreamContents(TransferTo.java:133)

            bpb Brian Burkhalter
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: