Skip to content

[BUG] BufferedChecksumStreamInput.read() throws EOFException instead of returning -1 #4820

Closed
@sachinpkale

Description

Describe the bug

read() method of BufferedChecksumStreamInput throws EOFException on reaching end of file.

@Override
public int read() throws IOException {
return readByte() & 0xFF;
}

As per javadocs of InputStream.read() should return -1 on EOF.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions