Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal reflective operation #951

Closed
UknownGino opened this issue Mar 11, 2024 · 2 comments
Closed

Illegal reflective operation #951

UknownGino opened this issue Mar 11, 2024 · 2 comments

Comments

@UknownGino
Copy link

UknownGino commented Mar 11, 2024

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)

@gnodet
Copy link
Member

gnodet commented Mar 11, 2024

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

@UknownGino
Copy link
Author

It worked, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants