Skip to content

[2.9.x] Fix ClassCastException when using @With Java annotation (backport #13282) by @mkurz#13284

Merged
mergify[bot] merged 2 commits into
2.9.xfrom
mergify/bp/2.9.x/pr-13282
May 22, 2025
Merged

[2.9.x] Fix ClassCastException when using @With Java annotation (backport #13282) by @mkurz#13284
mergify[bot] merged 2 commits into
2.9.xfrom
mergify/bp/2.9.x/pr-13282

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented May 22, 2025

See

This does not fix the problem but at least avoids the ClassCastException

When using @With directly on an action method, there simply is no configuration.
Even the "Simple Action" that is used in the docs when using @With make that clear and uses Void

/** A simple action with no configuration. */
public abstract static class Simple extends Action<Void> {}

However, what the author in #13281 tries, even fails with a ClassCastException when using Action.Simple because also Void can not be cast to the desired type.


This is an automatic backport of pull request #13282 done by Mergify.

@mkurz mkurz changed the title [2.9.x] [3.0.x] Fix ClassCastException when using @With Java annotation (backport #13282) by @mkurz [2.9.x] Fix ClassCastException when using @With Java annotation (backport #13282) by @mkurz May 22, 2025
@mergify mergify Bot merged commit 635994d into 2.9.x May 22, 2025
27 checks passed
@mergify mergify Bot deleted the mergify/bp/2.9.x/pr-13282 branch May 22, 2025 10:46
@mkurz mkurz added this to the 2.9.8 milestone Jul 1, 2025
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.

1 participant