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

Marshaller generator tries to create marshallers for all nested types of a @Portable entity

    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:
      Workaround Exists
    • Workaround Description:
      Hide

      Provide a no-args constructor

      Show
      Provide a no-args constructor

      Description

      I have an entity where it contains a Builder static member class. The entity is annotated with @Portable, where the static member class isn't.

      If the member class does not have a public no-args constructor then the marshallers fail to generate any code.

      @Portable
      public class BalanceSheet {
      ...
      public static class Builder {
      public Builder(String someArg)

      { this.someArg = someArg; }

      public build()

      { return new BalanceSheet(someArg); }

      }

      public BalanceSheet(@MapsTo("someArg") String someArg)

      { this.someArg = someArg; }

      ...
      }

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jfuerth Jonathan Fuerth
                Reporter:
                tombee Tom Barlow
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: