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

java.io.CharArrayReader(array[], off, len) no exception if off+len is outofbound

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.1.5, 1.2.0, 5.0
    • Fix Version/s: 5.0
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b32
    • CPU:
      generic
    • OS:
      generic

      Description

      If I construct a CharArrayReader(chararray, 5, 5) where the chararray is 7-characters, no exception is thrown. I would expect a IndexOutOfBoundsException.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mr Mark Reinhold
              Reporter:
              kdonkersunw Karin Donker (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: