You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Igor Vaynberg <ig...@gmail.com> on 2011/09/01 19:32:44 UTC

Re: Self type

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
<ma...@koodaripalvelut.com> 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
>