Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3028

GWT project fails to compile with "Cannot instantiate the type Set" (or List)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.2.0.RELEASE
    • Fix Version/s: 1.2.1.RELEASE
    • Component/s: GWT
    • Labels:
    • Environment:
      xubuntu 11.10 openJDK6

      Description

      When creating a domain model that includes an enum, GWT scaffolding generates the line "return new Set ...", which is trying to instantiate an interface.

      To replicate, run the attached script, then use "mvn gwt:run" to see this error:

      [ERROR] Cannot instantiate the type Set<Interface>

        Attachments

          Activity

            People

            Assignee:
            aswan Andrew Swan
            Reporter:
            kayser Kay Roesler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: