[
https://issues.apache.org/jira/browse/ISIS-641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13867972#comment-13867972
]
Dan Haywood commented on ISIS-641:
----------------------------------
The issue isn't to do with delete, simply that Isis assumes that any returned
value of an action is either a scalar, or an object, or a java.util.List. so
we need instead to handle a return value of type java.util.Collection as well
(and convert into a java.util.List if required).
> Incompatibility of TreeSet for @Bulk.
> --------------------------------------
>
> Key: ISIS-641
> URL: https://issues.apache.org/jira/browse/ISIS-641
> Project: Isis
> Issue Type: Bug
> Components: Core
> Affects Versions: core-1.3.0
> Reporter: Deepak Krishnan
> Assignee: Dan Haywood
> Fix For: core-1.4.0
>
>
> Incompatibility of TreeSet for @Bulk.
> ActionPanel assumes that standalone lists are of type of type java.util.List.
> Trying to do a bulk delete operation on a treeset of an entity throws an
> class cast exception
> java.util.TreeSet cannot be cast to java.util.List
> org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel$ResultType#asList(ActionPanel.java:460)
> org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel$ResultType#determineFor(ActionPanel.java:446)
> org.apache.is
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)