So lets say I am trying to get a method from a class using Method m = plugin.getClass().getDeclaredMethod("getFile");
.
But that plugin
class is extending another class, which is the one with the getFile
method. I am not quite sure if that would make it throw the NoSuchMethodException
exception or not.
I know the class that the plugin
is extending has the getFile method.
Sorry if I sound confusing, a bit tired.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…