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

java.io.Writer.write(char[], int, int) out of bounds exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • core-libs
    • x86
    • windows_nt



      Name: bb33257 Date: 05/12/98


      When using a Writer to write(char[], int, int), and the offset + the
      length take you out of bounds, ArrayIndexOutOfBoundsException is
      thrown. IndexOutOfBounds should be thrown instead (according to
      the developer). The same problem exists for Reader.read(char[], int, int)

      ======================================================================

            zlisunw Zhenghua Li (Inactive)
            bcbeck Brian Beck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: