-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
8, 11, 17
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
class Example {
private final double x = 1;
...
final Field field = object.getClass().getDeclaredField(identifier);
field.setAccessible(true);
field.set(object, value);
Field is not set but no exception is thrown.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See description
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Some kind of exceptoin
ACTUAL -
None.
---------- BEGIN SOURCE ----------
See description
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Make sure the target field is not final
FREQUENCY : always
class Example {
private final double x = 1;
...
final Field field = object.getClass().getDeclaredField(identifier);
field.setAccessible(true);
field.set(object, value);
Field is not set but no exception is thrown.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See description
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Some kind of exceptoin
ACTUAL -
None.
---------- BEGIN SOURCE ----------
See description
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Make sure the target field is not final
FREQUENCY : always