Class ReflectionUtil
java.lang.Object
io.netty.util.internal.ReflectionUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic ThrowabletrySetAccessible(AccessibleObject object, boolean checkAccessible) Try to callAccessibleObject.setAccessible(boolean)but will catch anySecurityExceptionandand return it.invalid reference
java.lang.reflect.InaccessibleObjectException
-
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.
-