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

Clarify that scope annotations shouldn't be used at injection points

    XMLWordPrintable

Details

    • Clarification
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Out of Date
    • None
    • TBD
    • Contexts
    • None

    Description

      Sometimes you see people trying to do

      @Inject @ApplicationScoped
      private SomeRequestScopedBean sRSB;

      It should be clarified that this has no effect. Could even throw a validation exception at deployment.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nickarls Nicklas Karlsson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: