Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-966

The GroupsModelArray doesn't work properly when passing it a List with a generic type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.1
    • Component/s: None
    • Labels:
      None

      Description

      The GorupsModelArray will throw an error when passing it a list with a generic type, this happens when it tries to call an overriden method to createGroupFoot with the generic type. Please see the attached code for more information.

      This should be an easy fix, in the constructor instead of using:

      (D[])data.toArray()

      use

      (D[])data.toArray(new Food[0]) where Food is the generic type

      The attached code contains a static void main method so it can be run independently for ease of testing.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            tmillsclare tmillsclare
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: