[JIRA] (GLAZEDLISTS-579) Java 8: DefaultEventListModel should impelement generic ListModel<>

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] (GLAZEDLISTS-579) Java 8: DefaultEventListModel should impelement generic ListModel<>

JIRA jira-no-reply@java.net

     [ https://java.net/jira/browse/GLAZEDLISTS-579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

brands closed GLAZEDLISTS-579.
------------------------------

         Assignee: brands  (was: jessewilson)
    Fix Version/s: 1.10.0
       Resolution: Duplicate

Duplicate of GLAZEDLISTS-578.

> Java 8: DefaultEventListModel should impelement generic ListModel<>
> -------------------------------------------------------------------
>
>                 Key: GLAZEDLISTS-579
>                 URL: https://java.net/jira/browse/GLAZEDLISTS-579
>             Project: glazedlists
>          Issue Type: Bug
>          Components: swing
>            Reporter: realsonic3
>            Assignee: brands
>              Labels: jdk8
>             Fix For: 1.10.0
>
>
> In JDK 8 there is generic JList<> with generic ListModel<>. When I write usual (e.g. for JDK6) code such like "actionsList.setModel(new DefaultEventListModel<Action>(actionsClone));" Java 8 shows warning: "Warning:(128, 33) java: unchecked call to setModel(javax.swing.ListModel<E>) as a member of the raw type javax.swing.JList". And if I change raw JList to generic JList<> from some type, warning changes to: "Warning:(371, 30) java: unchecked method invocation: method setModel in class javax.swing.JList is applied to given types
>   required: javax.swing.ListModel<E>
>   found: ca.odell.glazedlists.swing.DefaultEventListModel<T>" because of DefaultEventListModel implements raw ListModel.
> The fix shouldnt be very tough...



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)