I'm new to reflection, as a matter of fact, I never had to use it until I ran into the following problem -
I tried to use a method called getCompatibilityInfo
defined in a class called Resources, but I saw that the only way of doing it is to call it like this:
Resources.class.getMethod("getCompatibilityInfo");
I can get an instance of Resources using a method called getResources()
, so why isn't it accessible using getResources().getCompatibilityInfo()
?
The class source code is here
Thanks!