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.
Exception in thread "main" org.joor.ReflectException: Error while compiling Name
at org.joor.Compile.compile(Compile.java:158)
at org.joor.Reflect.compile(Reflect.java:104)
at Main.main(Main.java:12)
Caused by: java.lang.NullPointerException
at org.joor.Compile.compile(Compile.java:66)
... 2 more
A better exception could be thrown instead to help users troubleshoot this issue.
When
Reflect.compile()
can't find aToolProvider::getSystemJavaCompiler
, aNullPointerException
is thrown (see https://github.com/jOOQ/jOOR/issues/107):A better exception could be thrown instead to help users troubleshoot this issue.