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

java.io.InputStreamReader.read(chars[6], 5, -2) yeilds 0 length read

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1.5
    • core-libs
    • None
    • generic
    • generic

      I have a 6 byte InputStream and an InputStreamReader based on that. I do an ISR.read(chars[], 5, -2), and would expect an exception (IllegalArgument?), but it throws no exception and returns 0 as the number of characters read. The test case is attached.

            Unassigned Unassigned
            kdonkersunw Karin Donker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: