[jboss-jira] [JBoss JIRA] (WFLY-4353) Incompliant CDI behavior since WFLY-4185

Arcadiy Ivanov (JIRA) issues at jboss.org
Mon Feb 16 09:45:50 EST 2015


     [ https://issues.jboss.org/browse/WFLY-4353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arcadiy Ivanov updated WFLY-4353:
---------------------------------
    Description: 
WFLY-4185/WFLY-4350 introduced an ability to specify producers in Servlet listeners and other non-EJB Java-EE components.

This behavior is not compliant per CDI-spec, as discussed in WELD-1872.

Specifically, "Servlet listeners are not considered beans (even though they support injection and interception)." Therefore, no producers should be registered on servlet listeners to ensure portable compliant behavior.

However, current behavior is also not acceptable, since no warnings or errors are produced in response to encountering the producers in components that should have none.

Therefore, I propose:

# Revert WFLY-4185
# Add
## at a minimum, warning-level log messages when encountering managed bean annotations for non-bean components; or
## fail the deployment for strict compliance with the spec when encountering managed bean annotations for non-bean components

  was:
WFLY-4185/WFLY-4350 introduced an ability to specify producers in Servlet listeners and other non-EJB components.

This behavior is not compliant per CDI-spec, as discussed in WELD-1872.

Specifically, "Servlet listeners are not considered beans (even though they support injection and interception)." Therefore, no producers should be registered on servlet listeners to ensure portable compliant behavior.

However, current behavior is also not acceptable, since no warnings or errors are produced in response to encountering the producers in components that should have none.

Therefore, I propose:

# Revert WFLY-4185
# Add
## at a minimum, warning-level log messages when encountering managed bean annotations for non-bean components; or
## fail the deployment for strict compliance with the spec when encountering managed bean annotations for non-bean components



> Incompliant CDI behavior since WFLY-4185
> ----------------------------------------
>
>                 Key: WFLY-4353
>                 URL: https://issues.jboss.org/browse/WFLY-4353
>             Project: WildFly
>          Issue Type: Bug
>          Components: CDI / Weld
>            Reporter: Arcadiy Ivanov
>            Assignee: Stuart Douglas
>            Priority: Minor
>
> WFLY-4185/WFLY-4350 introduced an ability to specify producers in Servlet listeners and other non-EJB Java-EE components.
> This behavior is not compliant per CDI-spec, as discussed in WELD-1872.
> Specifically, "Servlet listeners are not considered beans (even though they support injection and interception)." Therefore, no producers should be registered on servlet listeners to ensure portable compliant behavior.
> However, current behavior is also not acceptable, since no warnings or errors are produced in response to encountering the producers in components that should have none.
> Therefore, I propose:
> # Revert WFLY-4185
> # Add
> ## at a minimum, warning-level log messages when encountering managed bean annotations for non-bean components; or
> ## fail the deployment for strict compliance with the spec when encountering managed bean annotations for non-bean components



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list