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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 6
    • Affects Version/s: 5.0, 6
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: