Open ennishol opened 1 year ago
First opened in loom-unit https://github.com/cescoffier/loom-unit/issues/3
/cc @cescoffier (virtual-threads), @ozangunalp (virtual-threads)
@cescoffier did you try the patch we talked about, or do you want to me to look into this?
I did not tried it yet
@geoand I tried... it's not enough. I've already found multiple issues. Due to classloading, quarkus is doing a deep clone of the parameter you want to inject in the test. However, deep clone means lots of reflection, which breaks JPMS, as you cannot access most of the classes.
I reduced the amount of objects to serialize to workaround several issues, but I'm now down to see how I can serialize JFR Events when you do not have access to other JFR package.
Unfortunately the situation is pretty terrible WRT test parameters.
Hopefully that will change with Holly's JUnit 5.10 change
Unfortunately the situation is pretty terrible WRT test parameters.
Hopefully that will change with Holly's JUnit 5.10 change
Describe the bug
Following https://quarkus.io/blog/virtual-threads-3/ I've tried to use @cescoffier's loom-unit library and inject
ThreadPinnedEvents
with the latest Quarkus 3.4.3, but I'm first getting an error about a not opened module, and after opening it, then an NPE. Tested withCorretto-21.0.0.35.1 (build 21+35-LTS)
andTemurin-21+35 (build 21+35-LTS)
Expected behavior
Should be able to run tests
Actual behavior
error after adding adding
--add-opens java.base/java.util=ALL-UNNAMED
How to Reproduce?
Unzip demo.tar.gz and run
./mvnw verify
Output of
uname -a
orver
No response
Output of
java -version
openjdk version "21" 2023-09-19 LTS OpenJDK Runtime Environment Corretto-21.0.0.35.1 (build 21+35-LTS) OpenJDK 64-Bit Server VM Corretto-21.0.0.35.1 (build 21+35-LTS, mixed mode, sharing)
Quarkus version or git rev
3.4.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.3 (21122926829f1ead511c958d89bd2f672198ae9f)
Additional information
No response