Open xenoterracide opened 3 months ago
You need to add requires jdk.unsupported;
to your module-info.java
.
See this question on stackoverflow for details.
interesting, I didn't know jdk.unsupported
was a thing. Good to know. I think I may also have seen something about actually being able to require sun.something
but I still don't think it's a good idea and that this code should be migrated away from...
In the mean time I've been creating gradle JvmTestSuite's my main test
always has a module-info
to be on the module-path. If need be I create a whitebox
test suite that runs on the classpath.
sun classes aren't supposed to be available anymore. If you're using a module-info they definitely aren't available. I tested 3.4 as well.