]
Libor Zoubek commented on JBDS-1420:
------------------------------------
closing since duplicate issue is closed too
CDI producer method incorrectly recognized as invalid
-----------------------------------------------------
Key: JBDS-1420
URL:
https://issues.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: