[ 
https://issues.apache.org/jira/browse/WICKET-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679072#action_12679072
 ] 

Brill Pappin commented on WICKET-2137:
--------------------------------------

Not that I'm an expert in Generics but it seems to me that *when dealing wit 
the contents of the list*:
 __<? extends List<? extends T>> == <List<T>>__
because by definition every T extends T and you have really only just moved T 
up the hierarchy. 
the <? extends T> seem only useful when generalizing the generics and not he 
actual content of the list.

Whatever we do, as long as it is all consistent and allows the simplest format 
during development (read code maintainability) I'll go along with it.

I won't be happy if I have to type my lists with a whildcard,  however based on 
what Oliver is demonstrating that doesn't look like it will be a problem and 
everything will work as before with the rest of the list elements.

As I said, All I wanted was a Pepsi :)


> Remove ? extends from constructor of DropDownChoice
> ---------------------------------------------------
>
>                 Key: WICKET-2137
>                 URL: https://issues.apache.org/jira/browse/WICKET-2137
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.4-RC3
>         Environment: 1.4-SNAPSHOT as of 2009-01-28
>            Reporter: Brill Pappin
>         Attachments: TestGenerics.java
>
>
> DropDownChoice has a generics definition of List<? extends T> in its 
> constructor. 
> This causes trouble with existing models that may be used in a DropDownChoice 
> and is not consistant with ListView which uses <List<T>>.
> Change DropDownChoice to match the other list type components so that their 
> models can be used across components.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to