Martijn Dashorst wrote:
I was creating a test case for the property model to do some mind
exercises, and came up with the following testcase:
[...]
What do you think? Is this test case correct? If so, should we improve
the JDK that final fields can be assigned using reflection?
I think the test is exactly the expected result. If a field is final,
people will have made it final for a reason, and we definitely shouldn't
be magicking it not to be. Wicket should definitely fail with a
RuntimeException if you try to set the value of a final field using a
PropertyModel.
Al
--
Alastair Maw
Wicket-biased blog at http://herebebeasties.com