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

java.io.ObjectOutputStream.write(byte[], int, int) throws wrong exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.3.0
    • 1.2.2
    • core-libs
    • None

      If the write(byte[], int, int) method of java.io.ObjectOutputStream is invoked
      with a negative length, it throws a NullPointerException rather than the more
      usual (at least in java.io) IndexOutOfBoundsException. This was causing the
      regression test java/io/OutputStream/WriteParams to fail, so I've disabled that
      section of the test. Once this bug is fixed, that section of the test should
      be re-enabled. -- mr@eng 1999/2/1

            mwarressunw Michael Warres (Inactive)
            mr Mark Reinhold
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: