Skip to content

Stream.== and Stream.equals are not reflexive #6881

@scabug

Description

@scabug

val s = Stream.from(0)
s.equals(s) // does not terminate

But the contract states: "It is reflexive: for any non-null reference value x, x.equals(x) should return true."

See http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html#equals%28java.lang.Object%29

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions