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

Pipe.SourceChannel.read - inconsistent behavior

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • core-libs
    • beta3
    • x86
    • windows_nt
    • Verified

      This problem is related to bug#4488234 (see test in the bug report).

      1. wrap empty byte array in byte buffer and write to pipe write end

      2. use blocking mode to read in byte buffer which has 0 bytes remaining

      on windows NT / windows 2000:

      - read blocks

      results on Solaris / Linux:

      - read() does not block and returns -1 immediately

            mmcclosksunw Michael Mccloskey (Inactive)
            hvilekar Harshad Vilekar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: