dweiss commented on pull request #572: URL: https://github.com/apache/lucene/pull/572#issuecomment-1001990946
> The core modular test still succeeeds, although the jdk.unsupported module is not added with "requires", but "requires static" It's gradle test launcher. I'm not sure what it does or why (or where) but you can see the root set of modules the process starts with and it's, ahem, large. ``` gradlew -p lucene/core.tests "-Ptests.jvmargs=--show-module-resolution" test ``` for me it prints the following roots: ``` root java.sql jrt:/java.sql root java.rmi jrt:/java.rmi root jdk.management.jfr jrt:/jdk.management.jfr root jdk.jdi jrt:/jdk.jdi root org.apache.lucene.core.tests file:///C:/Work/apache/lucene/lucene/core.tests/build/classes/java/test/ root java.transaction.xa jrt:/java.transaction.xa root java.xml.crypto jrt:/java.xml.crypto root java.logging jrt:/java.logging root java.xml jrt:/java.xml root jdk.xml.dom jrt:/jdk.xml.dom root jdk.jfr jrt:/jdk.jfr root org.apache.lucene.core file:///C:/Work/apache/lucene/lucene/core/build/libs/lucene-core-10.0.0-SNAPSHOT.jar root java.datatransfer jrt:/java.datatransfer root jdk.httpserver jrt:/jdk.httpserver root jdk.net jrt:/jdk.net root java.desktop jrt:/java.desktop root java.naming jrt:/java.naming root java.prefs jrt:/java.prefs root java.net.http jrt:/java.net.http root jdk.compiler jrt:/jdk.compiler root java.security.sasl jrt:/java.security.sasl root jdk.jconsole jrt:/jdk.jconsole root jdk.attach jrt:/jdk.attach root java.base jrt:/java.base root jdk.javadoc jrt:/jdk.javadoc root junit file:///C:/Users/dweiss/.gradle/caches/modules-2/files-2.1/junit/junit/4.13.1/cdd00374f1fee76b11e2a9d127405aa3f6be5b6a/junit-4.13.1.jar automatic root jdk.jshell jrt:/jdk.jshell root java.sql.rowset jrt:/java.sql.rowset root jdk.sctp jrt:/jdk.sctp root java.management jrt:/java.management root jdk.jsobject jrt:/jdk.jsobject root jdk.unsupported jrt:/jdk.unsupported root java.smartcardio jrt:/java.smartcardio root jdk.scripting.nashorn jrt:/jdk.scripting.nashorn root java.instrument jrt:/java.instrument root java.security.jgss jrt:/java.security.jgss root jdk.management jrt:/jdk.management root jdk.security.auth jrt:/jdk.security.auth root jdk.nio.mapmode jrt:/jdk.nio.mapmode root java.compiler jrt:/java.compiler root java.scripting jrt:/java.scripting root jdk.dynalink jrt:/jdk.dynalink root jdk.unsupported.desktop jrt:/jdk.unsupported.desktop root jdk.accessibility jrt:/jdk.accessibility root org.hamcrest file:///C:/Users/dweiss/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest/2.2/1820c0968dba3a11a1b30669bb1f01978a91dedc/hamcrest-2.2.jar automatic root jdk.jartool jrt:/jdk.jartool root java.management.rmi jrt:/java.management.rmi root jdk.security.jgss jrt:/jdk.security.jgss ``` I don't know why these other roots are there - couldn't figure it out. A stand-alone check I did was working correctly with an automatic module on module path (junit), as well as with --add-modules ALL-MODULE-PATH. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
