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

java.io.PipedReader.read(char[], int, int) len, off < 0 no exception

XMLWordPrintable

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

      PipedReader read(char[] buf, int off, int len) with off, len params < 0
      no exception or a improper exception is thrown. The Expected IllegalArgumentException should be thrown in these cases.

      With offset < 0 No exception is thrown at all.

      With len < 0 NegativeArraySizeException is 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: