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

incorrect spec in return clause of skipBytes(int) in DataInput

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.0
    • docs
    • None
    • sparc
    • solaris_7

      The specification of return values of skipBytes(int n) reads:

      "Returns:
               the number of bytes skipped, which is always n."

      However, in method specification, it points out that "it may skip over some
      smaller number of bytes, possibly zero", "The actual number of bytes skipped is
      returned." Therefore, the specification of return clause is inconsistent with method specification and is wrong.

            shommel Scott Hommel (Inactive)
            xwangsunw Xiaozhong Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: