I have a page:

    public class Search extends BasePage<Void>

when I do this:

    setResponsePage(Search.class, p);

I get an "Unchecked call to setResponsePage(Class&lt;C>, PageParamters) as a
member of raw type 'org.apache.wicket.Component'"

Is this the new intended behavior (that I have to supress a warning each
time I call setResponsePage())?

It isn't at all clear to me why this is better than simply defining the
class param as Class&lt;?> as I suggested in the wiki page on this topic.

I understand the old way of Class&lt;? extends Page&lt;?>> was correct but
sometimes led to ugly casting.  I didn't mind that way.

-Doug
-- 
View this message in context: 
http://www.nabble.com/Another-generics-question-from-1.4-trunk-tp17580897p17580897.html
Sent from the Wicket - Dev mailing list archive at Nabble.com.

Reply via email to