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

Remove warning about missing no-arg constructors in normal scope beans

    Details

    • Type: Task
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 4.0.0.Beta6
    • Fix Version/s: 4.0.0.Beta7
    • Component/s: None
    • Labels:
      None

      Description

      For every normal scoped type (such as @ApplicationScoped), if the type uses constructor injection and doesn't have a no-argument constructor, Errai logs warnings of the form:

      The class $CLASS must be proxiable but does not have an accessible no-argument constructor

      Often this isn't a problem, and when it is Errai fails at runtime with an error naming the problematic type in the console. Hence this compile-time warning is unnecessary.

        Gliffy Diagrams

          Attachments

            Issue Links

              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: