Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-234

Package-private constructors not recognised for constructor mapped entities

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0.1.Final
    • Component/s: None
    • Labels:
      None
    • Workaround Description:
      Hide

      Change constructor to public.

      Show
      Change constructor to public.

      Description

      When using a builder pattern to construct an entity due to having a large number of optional fields, the constructor is restricted to package-private or private. At the moment, the Errai marshaller only scans public constructors.

      It would be nice to have package-private constructors scanned for constructor mapped entities so that the builder pattern can be used effectively.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tombee Tom Barlow
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: