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

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Normal Normal
    • 6.0.1
    • 6.0.0
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: