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

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: