Skip to content

Buffer.indexOf(ByteString) accepts negative indices  #422

Open
@fzhinkin

Description

While Source.indexOf(ByteString) throws IllegalArgumentException on attempts to supply negative indices, Buffer's overload accepts them and return some results.

Expected behavior: Buffer.indexOf(ByteString(...), -1) should throw IAE.

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions