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

java.io.FileInputStream.read(byte[], int, int) off, len param < 0 no exception

XMLWordPrintable

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

      FileInputStream read(byte[] buf, int off, int len) with off, len params
      < 0 no exception or the improper exception is thrown.

      With len < 0 No exception at all is thrown. Expect IllegalArgumentException
        to be thrown in this case.

      With offset < 0 ArrayIndexOutOfBoundsException thrown, but not the expected
        IllegalArgumentException


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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: