Class ReflectionUtil
java.lang.Object
io.netty.util.internal.ReflectionUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static RuntimeExceptionstatic ThrowabletrySetAccessible(AccessibleObject object, boolean checkAccessible) Try to callAccessibleObject.setAccessible(boolean)but will catch anySecurityExceptionandand return it.invalid reference
java.lang.reflect.InaccessibleObjectException
-
Constructor Details
-
ReflectionUtil
private ReflectionUtil()
-
-
Method Details
-
trySetAccessible
Try to callAccessibleObject.setAccessible(boolean)but will catch anySecurityExceptionandand return it. The caller must check if it returnsinvalid reference
java.lang.reflect.InaccessibleObjectExceptionnulland if not handle the returned exception. -
handleInaccessibleObjectException
-