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

Add CompileOptions.warningHandling() to specify how compile time warnings should be handled #122

Open lukaseder opened 2 years ago

lukaseder commented 2 years ago

Currently, when there are compile time warnings, we're throwing a ReflectException. For example, if an annotation processor declares supporting Java 11, but we're processing things with Java 15, there's this exception here:

org.joor.ReflectException: Compilation error: warning: Supported source version 'RELEASE_11' from annotation processor 'org.joor.test.CompileOptionsTest$AProcessor' less than -source '15'

That shouldn't be an exception, but just a log message. We should have:

lukaseder commented 2 years ago

Huh I cannot seem to consistently reproduce this warning. May have been some IDE related artifact? Will investigate again, once this can be reproduced more consistently.