-
Hi all, I'm trying to use generics in synthetic bean creation. I create a List<Class<?>> Using the following
I would suspect that this would work. however it just gives the error. [ERROR] HealthCheckTest.testHealth » Runtime java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors I am suspecting that something is wrong during the generation of the List<Class<?>>. Does anyone have any insights? Kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Here is a reproducer. |
Beta Was this translation helpful? Give feedback.
-
Hi @jelmew, the |
Beta Was this translation helpful? Give feedback.
-
Hi, Well, good to know, that saves me some more hours overthinking. It would be good to fail fast, because most people don't know the spec by heart. |
Beta Was this translation helpful? Give feedback.
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.