First of all, this is not a normal action that I would like to do, but this case is with a lot of outdated codes that I cannot touch, and unit tests that need to be written for newer things.
In any case, I have a class, and I can access all fields and methods through reflection, with the exception of private / protected static ones. So, is there a way to access this private static method through reflection?
source
share