Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-482

Allow as "choices" return type any descendant of "Collection"

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: core-1.2.0
    • Fix Version/s: core-1.3.0
    • Component/s: Core
    • Labels:
      None

      Description

      Current implementation only allows to return a List with the choices for a given property, action or action parameter.

      It should be improved to allow to return any descendant of java.util.Collection.

      All these cases should be valid:

      class Customer {
      @SuppressWarnings("unused")
      public void someAction(final int x, final long y, final long z) {
      }

      @SuppressWarnings("unused")
      public Collection<Integer> choices0SomeAction()

      { return Collections.emptyList(); }

      @SuppressWarnings("unused")
      public List<Long> choices1SomeAction() { return Collections.emptyList(); }

      @SuppressWarnings("unused")
      public Set<Long> choices2SomeAction()

      { return Collections.emptySet(); }

      }

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Dan Haywood
              Reporter:
              obou Oscar Bou
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: