On Fri, Feb 5, 2010 at 10:16 AM, Wilhelmsen Tor Iver <[email protected]> wrote:
>>   super(new CompoundPropertyModel(this));
>
> This seems wrong: A call to super() cannot reference "this" directly or 
> indirectly:
>
> JLS §8.8.7 says:
> "It is a compile-time error for a constructor to directly or indirectly 
> invoke itself through a series of one or more explicit constructor 
> invocations involving this."

Yup, this is a bug in the book's example code. Has nothing to do with
1.3 or 1.4.

And yes, the book is still valid apart from the model changes. My
guess is that 1.5 will invalidate a bit more, but not too much. Mostly
the part about page mounting and nice URLs will change. The internal
request processing implementation is completely rewritten, but that
should be transparent to the most of us (and was not covered in the
book). The same goes for Wicket Ajax: completely rewritten,
transparent for most users.

Martijn

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to