jOOR icon indicating copy to clipboard operation
jOOR copied to clipboard

Change Compile to skip trying to load a previously compiled class

Open lukaseder opened this issue 6 years ago • 3 comments

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 avatar Dec 04 '18 11:12 lukaseder

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

lukaseder avatar Dec 04 '18 12:12 lukaseder

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

arunvc avatar Nov 20 '20 08:11 arunvc

Yes, use the underlying JavaCompiler API directly

lukaseder avatar Nov 20 '20 08:11 lukaseder