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

"An illegal reflective access operation has occurred" #9

Closed
BobTheNerd10 opened this issue Jun 5, 2021 · 3 comments
Closed

"An illegal reflective access operation has occurred" #9

BobTheNerd10 opened this issue Jun 5, 2021 · 3 comments

Comments

@BobTheNerd10
Copy link

When compiling, this occurs

c tickflow tempo
Compiling 1 file(s)
Compiling tickflow\rvlRocket.tickflow
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.parboiled.transform.AsmUtils (file:/C:/Users/BobTh/Desktop/Modding%20Workshop/Rhythm%20Heaven%20Megamix/Tools/Tickompiler/tickompiler.jar) to method java.lang.ClassLoader.findLoadedClass(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.parboiled.transform.AsmUtils
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
Compiled tickflow\rvlRocket.tickflow -> 1423.9809 ms

I've tested packing and extracting as well, as far as I can tell this is the only command it affects. The compile command does work in its entirety.

@BobTheNerd10
Copy link
Author

To clarify this happens with files directly extracted from the game as well, not just modified files

@chrislo27
Copy link
Collaborator

This is a warning introduced by Java 9 to 15 as part of the Parboiled library, and is not related to Tickompiler code. It becomes an error in Java 16. Per the README, you can mitigate the issue by adding the --add-opens JVM argument:

java --add-opens java.base/java.lang=ALL-UNNAMED -jar tickompiler.jar --help

@chrislo27 chrislo27 pinned this issue Jun 5, 2021
@chrislo27
Copy link
Collaborator

The following issue with Java 16 and newer is also resolved with the --add-opens JVM argument:

Exception in thread "main" picocli.CommandLine$ExecutionException: Error while running command (rhmodding.tickompiler.cli.CompileCommand@4cf4d528): java.lang.RuntimeException: Error creating extended parser class: Could not determine whether class 'rhmodding.tickompiler.compiler.TickflowParser$$parboiled' has already been loaded

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

No branches or pull requests

3 participants