jline/jline3

Illegal reflective operation

atferrys opened this issue · 2 comments

I updated Jline to the latest version (3.25.1) and now every time I fire up my application I get this warning:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jline.terminal.impl.exec.ExecTerminalProvider$ReflectionRedirectPipeCreator (file:/C:/Users/<USERNAME>/.gradle/caches/modules-2/files-2.1/org.jline/jline/3.25.1/3d5c848825ffca5d798e6fc2987ac573bd424a1b/jline-3.25.1.jar) to constructor java.lang.ProcessBuilder$RedirectPipeImpl()
WARNING: Please consider reporting this to the maintainers of org.jline.terminal.impl.exec.ExecTerminalProvider$ReflectionRedirectPipeCreator
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

I was previously using Jline 3.21.0 and it worked fine. I'm running Java 11, is there a way to fix this? (Without ignoring the warning via the cli argument)

You can define the system property org.jline.terminal.exec.redirectPipeCreationMode to the value native to get rid of this warning.

It worked, thank you!