There is the following problem: I have one internal private class which has got public method, and I need to override it. Is it possible using Java Reflection?
UPDATE:
public class MyPublicClass {
private class MyPrivateClass {
public void doPublicMethod() {}
}
}
The only way I can think of is using a separate private class like this:
But that is not using reflection.