asciidoctor / asciidoctorj

:coffee: Java bindings for Asciidoctor. Asciidoctor on the JVM!
http://asciidoctor.org
Apache License 2.0
623 stars 173 forks source link

Avoid 'WARN FilenoUtil : Native subprocess control requires open access to the JDK IO subsystem' message #1155

Closed abelsromero closed 1 year ago

abelsromero commented 1 year ago

Running the CLI and also from builder tools displays the following Java warning:

023-04-01T22:03:19.247+02:00 [main] WARN FilenoUtil : Native subprocess control requires open access to the JDK IO subsystem
Pass '--add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED' to enable.

Afaik, there's nothing we can and this comes from jRuby (which requires access to JDK internals). It's up to calling libraries to add the JVM flags to make explicit that we need access to internals, making the warning dissapear.

For further reference, another interesting conversation I found https://github.com/FasterXML/jackson-databind/issues/3168.