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

Pipe.SourceChannel.read(ByteBuffer[] dsts) does not return -1 on end of stream

XMLWordPrintable

    • sparc
    • solaris_8


      Build 89 (tested in solaris 8 and win2000) :
      When Pipe.SourceChannel.read(ByteBuffer[] dsts) [ScatteringByteChannel interface read method] is used to read the ByteBuffer it reads the sequence of bytes in the stream and returns the number of bytes read but does not return -1 when the end of stream is reached , it hangs. The testcase PipeR.java is attached .

            mmcclosksunw Michael Mccloskey (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: