使用反射,有没有办法获得超类的字段?
答
你试过了吗?
myClass.getSuperClass().getDeclaredFields();
答案是肯定的,但你应该在问这里之前自己尝试过 – ControlAltDel 2012-03-29 16:43:38