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

Change Compile to skip trying to load a previously compiled class #76

Open
lukaseder opened this issue Dec 4, 2018 · 3 comments
Open

Comments

@lukaseder
Copy link
Member

When compiling a new class, the current behaviour of first checking whether the previously loaded class already exists and loading that again is probably not what people expect, see the example here: #72

In addition to that, it's not easy to guarantee this contract across several JDK versions. It was somewhat possible in JDK 8, but not in JDK 9+.

We'll introduce this breaking change and re-compile all classes every time

@lukaseder
Copy link
Member Author

Hmm, this is only asking for LinkageError trouble or otherwise significant backwards incompatible changes. We'll skip this

@arunvc
Copy link

arunvc commented Nov 20, 2020

Any work around to remove previously loaded class, so that latest changes gets compiled

@lukaseder
Copy link
Member Author

Yes, use the underlying JavaCompiler API directly

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

No branches or pull requests

2 participants