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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: None
    • Component/s: 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.

            Assignee:
            Brian Burkhalter
            Reporter:
            Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: