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.
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