jOOQ / jOOR

jOOR - Fluent Reflection in Java jOOR is a very simple fluent API that gives access to your Java Class structures in a more intuitive way. The JDK's reflection APIs are hard and verbose to use. Other languages have much simpler constructs to access type meta information at runtime. Let us make Java reflection better.
http://www.jooq.org/products
Apache License 2.0
2.8k stars 377 forks source link

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

Open lukaseder opened 5 years ago

lukaseder commented 5 years ago

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 commented 5 years ago

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

arunvc commented 3 years ago

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

lukaseder commented 3 years ago

Yes, use the underlying JavaCompiler API directly