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

InputStream.transferTo() method should specify what the return value should be when the number of bytes transfered is larger than Long.MAX_VALUE

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • core-libs
    • b10

      The javadoc of InputStream.transferTo only briefly states the expectations of the return value:

      > @return the number of bytes transferred

      It's possible that the inpustream instance could transfer more data than what can be returned as a long value.

      It would help to have the API specify what the expectations are in such cases.

            bpb Brian Burkhalter
            jpai Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: