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

Generated client code doesn't compile for observer methods of primitive types.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 4.0.0.Beta2
    • Fix Version/s: 4.0.0.Beta3
    • Component/s: ErraiCDI
    • Labels:
      None
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Use boxed type in observer method.

      Show
      Use boxed type in observer method.

      Description

      Observer methods cause IOC factories to have generated code with an anonymous inner subtype of AbstractCDIEventCallback<T>. For primitive types, the wrong type type argument is used (i.e. AbstractCDIEventCallback<double> instead of AbstractCDIEventCallback<Double>) causing compilation errors.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mbarkley Max Barkley
                Reporter:
                mbarkley Max Barkley
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: