Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1925

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

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.0.6
    • 5.0.7
    • Core Components
    • 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.

      Attachments

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

        Activity

          People

            hlship Howard Lewis Ship
            nirvdrum Kevin Menard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment