Skip to content

Add JDK21 sequenced collections for ReturnsEmptyValues #3659

@Madjosz

Description

@Madjosz

JDK 21 introduced Sequenced Collections (JEP 431) which added new interfaces to the java.util Collections API. Using these interfaces as return types leads to Mockito returning null when the method is unstubbed since they are obviously missing in org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues.

Is it possible to add this new API or impossible because of Java 11 baseline?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions