Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-395

Public fields in extensions should not be allowed

    XMLWordPrintable

    Details

    • Type: Clarification
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 1.1.PFD
    • Fix Version/s: None
    • Component/s: Portable Extensions
    • Labels:
      None

      Description

      Since the container must provide an @ApplicationScoped bean for every extension and since a proxy must be injected into injection points requesting this bean, it should be clear that extensions should not be allowed to have public fields. The spec doesn't specify this explicitly, but it should - like it does for non-dependent managed beans.

      The container should treat this as a definition error, otherwise people may end up accessing these public fields of extensions and getting weird errors.

      See also WELD-1474

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  luksa Marko Lukša
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: