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.
"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.
- duplicates
-
JDK-4321952 DataInput.skipBytes() spec inconsistent
-
- Closed
-