try to run in on jdk 1.4 then it will fail.. :) but with 1.5 sun has changed the reflection spec for final fields AGAIN (changed now several times)
johan On 8/16/07, Al Maw <[EMAIL PROTECTED]> wrote: > > 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 >
