[jbosstools-issues] [JBoss JIRA] Resolved: (JBDS-1420) CDI producer method incorrectly recognized as invalid

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Thu Nov 25 12:09:30 EST 2010


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

Alexey Kazakov resolved JBDS-1420.
----------------------------------

         Assignee: Alexey Kazakov  (was: Max Andersen)
    Fix Version/s: 4.0.0.CR1
       Resolution: Duplicate Issue


This issue has been fixed for CR1. See JBIDE-7710
But anyway thank you for the report. 

> CDI producer method incorrectly recognized as invalid
> -----------------------------------------------------
>
>                 Key: JBDS-1420
>                 URL: https://jira.jboss.org/browse/JBDS-1420
>             Project: Developer Studio (JBoss Developer Studio)
>          Issue Type: Bug
>    Affects Versions: 4.0.0.Beta1
>         Environment: Linux 64bit
> JDK 1.6.21
>            Reporter: Jozef Hartinger
>            Assignee: Alexey Kazakov
>             Fix For: 4.0.0.CR1
>
>
> JBDS incorrectly interprets the section 3.3.2 of the CDI spec. The spec says:
> "If a non-static method of a session bean class is annotated @Produces, and the method is not a business method of the session
> bean, the container automatically detects the problem and treats it as a definition error."
> The violation of the spec is incorrectly recognized on the bean class local view session beans (those since ejb 3.1 that no longer need an explicit local interface)
> having the following bean:
> @Stateful
> public class TestBean {
> 	@Produces
> 	@Named("foo")
> 	public String foo()
> 	{
> 		return "foo";
> 	}
> }
> JBDS considers the producer method as incorrect even though all the public methods of the bean class local view session bean are its business methods and thus the producer method is valid.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list