java.lang.reflect Method and Field

java.lang.reflect Method and Field

Your method is private but getMethod() only returns public method.
You need to use getDeclaredMethod().

Your field is private but getField() only returns public field.
You need to use getDeclaredField()

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注