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

    • Icon: Clarification Clarification
    • Resolution: Obsolete
    • Icon: Major Major
    • TBD
    • None
    • Contexts
    • None

      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.

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

                Created:
                Updated:
                Resolved: