Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServiceOperationInvoker#getValidatedServiceAccess inefficient reflection #1106

Open
wants to merge 1 commit into
base: releases/24.2
Choose a base branch
from

Conversation

paolobazzi
Copy link
Member

Add lazy initialized cache for public service methods for each queried class. Additionally fetching all public methods of a class at once avoids catching NoSuchMethodExceptions when trying to find a method.

This change avoids repeated NoSuchMethodException when checking if access is allowed for services using interfaces and abstract class in their hierarchy, where not every super class contains an implementation of the invoked method.

359668

@paolobazzi paolobazzi self-assigned this Aug 14, 2024
@paolobazzi paolobazzi force-pushed the features/pbz/24.2/359668-service-invoker-reflection branch 2 times, most recently from 5140846 to dfc4a77 Compare August 15, 2024 08:32
Add lazy initialized cache for public service methods for each queried
class. Additionally fetching all public methods of a class at once
avoids catching NoSuchMethodExceptions when trying to find a method.

This change avoids repeated NoSuchMethodException when checking if
access is allowed for services using interfaces and abstract class in
their hierarchy, where not every super class contains an implementation
of the invoked method.

359668
@paolobazzi paolobazzi force-pushed the features/pbz/24.2/359668-service-invoker-reflection branch from dfc4a77 to 1e5e40f Compare August 16, 2024 07:24
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