Skip to content

Fix onErrorContinue consumer nullability - #4324

Open
arnabnandy7 wants to merge 1 commit into
reactor:mainfrom
arnabnandy7:bugfix/jspecify-biconsumer-null
Open

arnabnandy7 wants to merge 1 commit into
reactor:mainfrom
arnabnandy7:bugfix/jspecify-biconsumer-null

Conversation

@arnabnandy7

Copy link
Copy Markdown

Kotlin consumers of Flux#onErrorContinue and Mono#onErrorContinue now correctly infer that the value associated with an error can be nullable.

Annotate the second BiConsumer type argument with JSpecify's @Nullable across all onErrorContinue overloads and the internal OnNextFailureStrategy. This aligns the public nullability contract with existing behavior when an error has no associated upstream value. The Javadocs now explicitly document this case.

Fixes #4285.

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
@arnabnandy7
arnabnandy7 requested a review from a team as a code owner July 15, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSpecify-annotated BiConsumer of onErrorContinue should allow null as its second argument

1 participant