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

Support modifying module metadata via JVM flags #36

Open
SquidDev opened this issue Oct 9, 2022 · 0 comments
Open

Support modifying module metadata via JVM flags #36

SquidDev opened this issue Oct 9, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@SquidDev
Copy link

SquidDev commented Oct 9, 2022

Kotlin does a slightly cursed thing in its stdlib where it patches out one of its classes when a debugger is attached. However, the replacement class references things outside of the original module definition (yeah, I don't know why either >_>), which obviously causes IllegalAccessErrors at runtime.

The recommend solution for this is to use --add-reads to allow this access when running under a debugger. However, this only applies to the boot layer (the --add-xxx flags aren't even readable by user code!), and not modules defined by sjh.

It would be nice if spj supported similar functionality, though driven via system properties instead.

@sciwhiz12 sciwhiz12 added the enhancement New feature or request label Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants