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

    Details

    • Type: Clarification
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: TBD
    • Component/s: Contexts
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nickarls Nicklas Karlsson
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: