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

java.io.Writer.write(String, int, int) off, len < 0 wrong exception thrown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.6
    • core-libs
    • None
    • sparc
    • solaris_2.6

      Writer write(String str, int off, int len) with off, len params < 0 the
      wrong Exception is thrown. The Expected IllegalArgumentException
      should be thrown in these cases.

      With len < 0 NegativeArraySizeException thrown
      With offset < 0 StringIndexOutOfBoundsException thrown

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: