What could this be? Just got an error like this: `...
# kotest
d
What could this be? Just got an error like this:
Copy code
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.kotest.extensions.system.SystemEnvironmentExtensionsKt (file:/home/david/.gradle/caches/modules-2/files-2.1/io.kotest/kotest-extensions-jvm/5.6.1/6b922bb3dde5b9addb13205c1222e0b2a3114bb0/kotest-extensions-jvm-5.6.1.jar) to field java.util.Collections$UnmodifiableMap.m
WARNING: Please consider reporting this to the maintainers of io.kotest.extensions.system.SystemEnvironmentExtensionsKt
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
c
d
Oh, thanks! I guess there's no workaround then...?
c
doesn’t look that way. I generally avoid having my code (what is being tested) have external dependencies such as system properties, environment variables, etc. Where there is a need for “configuration options” those are passed in as variables or configuration objects, resolved elsewhere (separating the external configuration/resolution from code logic).
d
I do too, I was I guess checking the naming of env vars that hoplite takes in in that particular test...
I just made it ignore that test, and it seems to work, thanks again!
w
🦥 but I think you should be able to workaround it by adding
--add-opens=java.base/java.util=ALL-UNNAMED
to the test task java options. It's still something that should be fixed on Kotest side though