[
https://java.net/jira/browse/GLAZEDLISTS-419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=381839#comment-381839 ]
reden commented on GLAZEDLISTS-419:
-----------------------------------
It was decided on the mailing list that this behavior can be changed.
> removeListEventListener throws IAE for nonexistent listener
> -----------------------------------------------------------
>
> Key: GLAZEDLISTS-419
> URL:
https://java.net/jira/browse/GLAZEDLISTS-419> Project: glazedlists
> Issue Type: Bug
> Components: core
> Affects Versions: 1.7.0
> Environment: Operating System: All
> Platform: All
> Reporter: heuermh
> Assignee: reden
> Priority: Minor
> Fix For: 1.10.0
>
>
> EventList.removeListEventListener throws an IllegalArgumentException when passed
> an nonexistent listener. Fine, but this behavior is not the same as
> javax.swing.event.EventListenerList, which fails silently. Compounding the
> issue is that there is not a ListEventListener[] getListenerList() or similar
> method for clients to check against before calling remove.
> Possible remedies:
> - implement removeListEventListener to fail silently
> - add a new method removeListEventListenerIfPresent(ListEventListener) that
> fails silently
> - add a new method ListEventListener[]/Collection<ListEventListener[]>
> getListenerList() or similar
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)