Skip to content

CXF-7647: Don't register duplicate endpoints for compiler-generated b… - #3618

Merged
coheigea merged 1 commit into
mainfrom
coheigea/CXF-7647
Oct 22, 2026
Merged

coheigea merged 1 commit into
mainfrom
coheigea/CXF-7647

Conversation

@coheigea

Copy link
Copy Markdown
Contributor

…ridge methods

When an interface overrides a generic method with more specific types, Java quietly adds a hidden “bridge” copy of that method using the generic types, and copies its annotations onto it. CXF treated that copy as a second endpoint for the same URL. Which one CXF picked was down to chance. When it picked the copy, the request failed, because CXF tried to create an abstract class.

The fix makes CXF recognise the hidden copy and point it at the real method’s endpoint, so each URL has exactly one endpoint with the correct types. Existing routes keep working as before.

@coheigea
coheigea merged commit 5085d20 into main Oct 22, 2026
7 of 8 checks passed
@coheigea
coheigea deleted the coheigea/CXF-7647 branch October 22, 2026 15:44
coheigea added a commit that referenced this pull request Oct 22, 2026
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.

2 participants