Tapestry
  1. Tapestry
  2. TAPESTRY-1925

Obscure exception when a Collection (not a List) is used as a GridDataSource

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.0.7
    • Component/s: Core Components
    • Labels:
      None

      Description

      Tapestry throws an exception when providing an empty collection, such as java.util.Collections.EMPTY_SET, to the Grid component as the source parameter. The message is of the form "tried to access class java.util.Collections$EmptySet from clas $PropertyConduit_XXX".

      It appears to be a case of not knowing which type of class to use, rather than just using the interface.

      1. TAPESTRY-1925_(2).patch
        4 kB
        Kevin Menard
      2. TAPESTRY-1925.patch
        4 kB
        Kevin Menard

        Activity

        Kevin Menard created issue -
        Kevin Menard made changes -
        Field Original Value New Value
        Summary Grid does not handle java.util.Collections empty collections. Grid does not handle Collections, only Lists.
        Kevin Menard made changes -
        Attachment TAPESTRY-1925.patch [ 12370766 ]
        Kevin Menard made changes -
        Attachment TAPESTRY-1925_(2).patch [ 12370769 ]
        Howard M. Lewis Ship made changes -
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Summary Grid does not handle Collections, only Lists. Obscure exception when a Collection (not a List) is used as a GridDataSource
        Howard M. Lewis Ship made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Fix Version/s 5.0.7 [ 12312802 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12417549 ] Default workflow, editable Closed status [ 12567735 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12567735 ] jira [ 12590863 ]

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Kevin Menard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development