MethodUtils when it was imported from Commons
BeanUtils.
| Modifier and Type | Field and Description |
|---|---|
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static boolean | Returns: true unless package/protected/private modifier detectedto test modifiers)Returns whether a given set of modifiers implies package access. |
| pack-priv static void | setAccessibleWorkaround(AccessibleObject
the AccessibleObject to set as accessible o)XXX Default access superclass workaround When a public class has a default access superclass with public members, these members are accessible. |
| ACCESS_TEST | back to summary |
|---|---|
| private static final int ACCESS_TEST | |
| MemberUtils | back to summary |
|---|---|
| pack-priv MemberUtils() | |
| isPackageAccess | back to summary |
|---|---|
| pack-priv static boolean isPackageAccess(int modifiers) Returns whether a given set of modifiers implies package access.
| |
| setAccessibleWorkaround | back to summary |
|---|---|
| pack-priv static void setAccessibleWorkaround(AccessibleObject o) XXX Default access superclass workaround When a public class has a default access superclass with public members, these members are accessible. Calling them from compiled code works fine. Unfortunately, on some JVMs, using reflection to invoke these members seems to (wrongly) prevent access even when the modifier is public. Calling setAccessible(true) solves the problem but will only work from sufficiently privileged code. Better workarounds would be gratefully accepted.
| |