Skip to content

Arc - wildcard detection for producer methods/fields is too aggressive #30412

Closed
@manovotn

Description

Related to #29883 and #29836

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.

Metadata

Assignees

Labels

area/arcIssue related to ARC (dependency injection)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions