-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maven Multi module CDI Injection_ClientProxy ClassCastException #2319
Comments
@mkouba can you take a look? |
So the problem only occurs in the dev mode. It seems that @stuartwdouglas I would expect the |
Ok. I didn't know we do support quarkus:dev in multimodule projects but it seems the support does not count with the generated wiring classes. In other words, when ArC generates a bean from a dependent module it has no way to detect a class from a multimodule project and thus the bean class is loaded as a framework class. |
I have a solution for ArC and I'm going to send a PR shortly but basically any integration that generates wiring classes for both the application and framework classes could be affected. |
thanks! it works perfectly |
I am seeing this on Quarkus 1.0.1.Final, so perhaps a regression? Reproducing example here: https://github.com/InfoSec812/quarkus-openapi-todo-demo/tree/switch-to-maven-multimodule |
@InfoSec812 could you open a new issue? Thanks! |
Please detail how we can reproduce your issue. |
This is a simple project to reproduce a bug (or a misunderstood of how quarkus dev works)
https://github.com/klebeer/quarkus-bug
Environment:
I have a maven multi-module project, one project is an "API" with only interfaces.
The second project is the "API Implementation", this project contains a Bean with @ApplicationScoped annotation.
The third project is a Rest Resource injecting with CDI the "API".
In the rest layer, there is a CDI injection of this "API"
Steps to reproduce:
Calling this uri, we have a java.lang.ClassCastException: l_ClientProxy cannot be cast to
The text was updated successfully, but these errors were encountered: