Details
-
Improvement
-
Resolution: Fixed
-
Major
-
6.3-milestone-1
-
None
-
N/A
-
N/A
-
Description
It is an apparently well known problem with java reflections that does not allow dynamic method invocation on private nested classes, even if the method modifiers are public.
We should apply by default the official workaround by issuing a
setAccessible(true)
on the methods to be invoked().
In the unlikely event that a security manager will reject our request for setAccessible(true), we can just log the exception and move along.
The other option is for beans to avoid being private classes in the first place, but IMO it would be better for us to avoid problems altogether.