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

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Thu Nov 25 11:55:30 EST 2010


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: Max Andersen


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