diff --git a/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java b/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java index 1ebccf3d3..6c043103c 100644 --- a/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java +++ b/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java @@ -565,7 +565,7 @@ public class FieldUtils { final Field field = getField(cls, fieldName, forceAccess); Validate.isTrue(field != null, "Cannot locate field %s on %s", fieldName, cls); // already forced access above, don't repeat it here: - writeStaticField(field, value); + writeStaticField(field, value, false); } /** @@ -614,7 +614,7 @@ public class FieldUtils { final Field field = getDeclaredField(cls, fieldName, forceAccess); Validate.isTrue(field != null, "Cannot locate declared field %s.%s", cls.getName(), fieldName); // already forced access above, don't repeat it here: - writeField(field, (Object) null, value); + writeField(field, (Object) null, value, false); } /** @@ -734,7 +734,7 @@ public class FieldUtils { final Field field = getField(cls, fieldName, forceAccess); Validate.isTrue(field != null, "Cannot locate declared field %s.%s", cls.getName(), fieldName); // already forced access above, don't repeat it here: - writeField(field, target, value); + writeField(field, target, value, false); } /**