this is not going to work for wicket because this system of
self-typing does not support anonymous classes
eg given:
Component<S extends Component<S>>
MarkupContainer<S extends MarkupContainer<S>> extends Component<S>
WebMarkupContainer<S extends WebMarkupContainer<S>> extends MarkupContainer<S>
you can no longer create an anonymous subclass of WebMarkupContainer or
WebMarkupContainer<?> w=new WebMarkupContainer<WHAT_GOES_HERE>("w") { }
this style of coding is very common and is essential to wicket.
-igor
On Mon, Aug 29, 2011 at 6:52 PM, Martin Makundi
<[email protected]> wrote:
> Hi!
>
> Is wicket using self type yet for methods like add(cc) {...; return this; } ?
>
> http://calliopesounds.blogspot.com/2010/11/having-java-generic-class-return-type.html
>
> **
> Martin
>