eclipse-scout / scout.rt

https://www.eclipse.org/scout/
Eclipse Public License 2.0
34 stars 39 forks source link

ServiceOperationInvoker#getValidatedServiceAccess inefficient reflection #1106

Open paolobazzi opened 2 months ago

paolobazzi commented 2 months ago

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