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

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.1.5
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: