-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Classloading error with QuarkusMock regression in 1.12.0.CR1 #14991
Comments
/cc @stuartwdouglas |
Any chance you could test with this PR: #14952 |
it is actually not easy to recompile quarkus in our corporate env. is there any snapshot version I could use? |
I was able to make a build with your branch. unfortunately it does not solve the issue. |
I just added this same code to VaultTest in the Quarkus codebase and there was no exception. Can you add |
I added a trace in the |
@stuartwdouglas here is a reproducer: https://github.com/vsevel/reproducer_classloader_14991 |
any news on this issue? is the reproducer badly coded, or do we have a real problem? |
Mockito.mock(VaultSystemBackendEngine.class); needs to be Mockito.mock(VaultSystemBackendManager.class). You also likey need the PR I linked above. I will add something to detect this. |
I confirm the suggested fix worked out. |
Describe the bug
I upgraded from
1.11.2
to1.12.0.CR1
, and I get the following error in my unit tests:I don't have a stacktrace other than the line of the test.
Expected behavior
No regression. Mock works as expected.
Actual behavior
The unit test fails with the above exception.
To Reproduce
I don't have yet an independent reproducer. Here is the code in my application that is causing the issue:
Environment (please complete the following information):
uname -a
orver
:Microsoft Windows [Version 10.0.17763.1697]
java -version
:openjdk version "11.0.1-redhat" 2018-10-16 LTS
1.12.0.CR1
mvnw --version
orgradlew --version
):Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
The text was updated successfully, but these errors were encountered: