Skip to content

Synthetic bean creating using generics doesn't seem to work. #46648

Answered by mkouba
jelmew asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jelmew, the List<Class<?>> is not a legal bean type, according to the spec and that's why the resolution fails. The truth is we should validate all bean types added to a synthetic bean and fail fast, when an invalid bean type is being registered.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mkouba
Comment options

mkouba Mar 12, 2025
Collaborator

@Ladicek
Comment options

Ladicek Mar 12, 2025
Collaborator

Answer selected by jelmew
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants