Skip to content

Support lookup of method using an override/overridden method - #605

Merged
Ladicek merged 1 commit into
smallrye:mainfrom
MikeEdgar:method-override-lkup
Nov 7, 2025
Merged

Ladicek merged 1 commit into
smallrye:mainfrom
MikeEdgar:method-override-lkup

Conversation

@MikeEdgar

Copy link
Copy Markdown
Member

Allow a method to be retrieved from ClassInfo using a provided MethodInfo as the lookup parameter. This is useful for finding override/overridden methods and it avoids allocation of MethodInternal objects and conversion of the search method's name to a String.

This is one of the items that would be useful to improve performance in SR OpenAPI. See smallrye/smallrye-open-api#2401.

The new method may be better named something else - not sure.

@Ladicek
Ladicek force-pushed the method-override-lkup branch from ad69ab0 to 7b70e0a Compare November 7, 2025 08:11
@Ladicek

Ladicek commented Nov 7, 2025

Copy link
Copy Markdown
Member

I've improved the javadoc (notably, overrides are more complex) and slightly expanded the test. Thanks!

@Ladicek Ladicek added this to the 3.5.2 milestone Nov 7, 2025
@Ladicek
Ladicek merged commit 4b0b224 into smallrye:main Nov 7, 2025
@Ladicek

Ladicek commented Nov 7, 2025

Copy link
Copy Markdown
Member

I take it you'd like to have a release relatively soon?

@MikeEdgar
MikeEdgar deleted the method-override-lkup branch November 7, 2025 12:13
@MikeEdgar

Copy link
Copy Markdown
Member Author

I take it you'd like to have a release relatively soon?

Yes. Let me do a little more investigation and see if there are any others like this that could be included. Thanks!

@Ladicek

Ladicek commented Nov 7, 2025

Copy link
Copy Markdown
Member

Sure. Let me know when you're done and I'll do the release.

@MikeEdgar

Copy link
Copy Markdown
Member Author

@Ladicek , please go ahead and release at your convenience, no rush. I spotted a few areas that maybe could benefit from reduced allocations, but not in areas heavily used by smallrye-open-api so I will just open an issue to mention them.

@Ladicek

Ladicek commented Nov 10, 2025

Copy link
Copy Markdown
Member

If you could file the issue soon, that would be great -- I can take a look and maybe address it (in full or partially) before doing the release. I'll do a 3.5.2 later today or in the coming few days.

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