java.io.InputStreamReader.read(char[], -int, -int) is allowed

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.1.5
    • Component/s: core-libs
    • None
    • generic
    • generic

      If you call InputStreamReader.read(char[], int, int) with negative values in the offset and length parameters, no exception is raised. The read is performed. In my test, which used a 3 character array, the call was:

      isr.read(array, -5, -10) and the resulting array was unchanged.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: