Closed
Description
Currently, we throw an exception if we detect wildcard in producer method/field type hierarchy whereas we should only check return type.
Widcards are illegal bean types and should be ignored when processing the bean but there shouldn't be an exception unless it's declared directly in the return type.
Relevant CDI part is here:
If a producer method return type contains a wildcard type parameter or is an array type whose component type contains a wildcard type parameter, the container automatically detects the problem and treats it as a definition error.
These CDI TCK tests show the difference between what we're doing and what we should be doing.