Quantcast

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

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

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

JIRA jira-no-reply@java.net

    [ https://java.net/jira/browse/GLAZEDLISTS-578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=390890#comment-390890 ]

realsonic3 commented on GLAZEDLISTS-578:
----------------------------------------

Hi. Any chances to fix it?

> Java 8: DefaultEventListModel should impelement generic ListModel<>
> -------------------------------------------------------------------
>
>                 Key: GLAZEDLISTS-578
>                 URL: https://java.net/jira/browse/GLAZEDLISTS-578
>             Project: glazedlists
>          Issue Type: Bug
>          Components: swing
>            Reporter: realsonic3
>            Assignee: jessewilson
>              Labels: jdk8
>
> 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)
Loading...