[
https://issues.jboss.org/browse/CDI-304?page=com.atlassian.jira.plugin.sy...
]
Jozef Hartinger reopened CDI-304:
---------------------------------
5.2.4. "Assignability of raw and parameterized types" now says
{quote}A raw bean type is considered assignable to a parameterized required type if the
raw types are identical.{quote}
8.3.1. "Assignability of raw and parameterized types for delegate injection
points" says:
{quote}A raw bean type is considered assignable to a parameterized delegate type if the
raw types are identical *and all type parameters of the delegate type are either unbounded
type variables or java.lang.Object.*{quote}
Wouldn't it make sense to make these two assertions coherent?
Note that the fact that the spec mentions this specifically in 8.3.1 indicates that the
change added recently to 5.2.4 had not been originally intended!
Clarify Producers for injection into generic types
--------------------------------------------------
Key: CDI-304
URL:
https://issues.jboss.org/browse/CDI-304
Project: CDI Specification Issues
Issue Type: Clarification
Components: Beans
Affects Versions: 1.1.PRD
Reporter: Mark Struberg
Assignee: Pete Muir
Fix For: 1.1.PFD
There is a discussion over in DeltaSpike whether an injection point
{code}
@Inject
private JsfMessage<SomeMessageClass>;
{code}
with a producer method
{code}
@Produces @Dependent
JsfMessage createMessage(InjectionPoint ip)
{code}
5.2 imo only defines the other way around. Having a raw type at the injection point and a
parameterized producer method.
We should define how this is intended to work.
Please note that the producer above works in all existing containers so far but not in
Weld2-beta1.
Here is the link to the DS issue:
https://issues.apache.org/jira/browse/DELTASPIKE-295
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira