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

(spec) SequenceInputStream.read(...) - some spec is not implemented.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 5.0, 6
    • core-libs
    • b33
    • x86, sparc
    • solaris_9, windows_2000

      The javadoc of the method read(byte b[], int off, int len) declares:
           * If the first argument is <code>null</code>,
           * up to <code>len</code> bytes are read and discarded.

      but the implementation does:
          } else if (b == null) {
              throw new NullPointerException();

      By checking the class implementation, I belive that what the javadoc declares is not implemented.
      ###@###.### 2005-03-22 13:12:30 GMT

            sjiang Shanliang Jiang (Inactive)
            sjiang Shanliang Jiang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: