Extension not able to load project classes #33240
Unanswered
ErrorProne
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Maybe someone here can give me some pointers. I'm currently trying to write a test with vaadins testbench. The test is rather simple
However, vaadin fails miserably to load a class from my project:
The vaadin code tries to find all classes which are annotated with a special annotation and than load them:
Class.forName(info.name).asSubclass(Component::class.java)
While debugging it looks like the extension executing the code is loaded with a different classloader(?) instance which has all project files in the bannedElements list (
quarkus/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/classloading/QuarkusClassLoader.java
Line 96 in b0cd886
This however works at least in the debugger:
ClassLoader.getSystemClassLoader().loadClass("mytest.vaadinpoc.ReportView")
Can anyone shed some light why this behaves like it does and maybe provide some pointers on what would be the right way to fix this?
Beta Was this translation helpful? Give feedback.
All reactions