Toshiya Kobayashi created DROOLS-5932:
-----------------------------------------
Summary: NullPointerException at NativeJavaCompiler when using JRE
Key: DROOLS-5932
URL:
https://issues.redhat.com/browse/DROOLS-5932
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.48.0.Final
Reporter: Toshiya Kobayashi
Assignee: Toshiya Kobayashi
If you use JRE instead of JDK, ToolProvider.getSystemJavaCompiler() returns null and will
result in NPE later.
https://github.com/kiegroup/drools/blob/996e8f40dec9f25650dfb0457eb09bad3...
Probably should add a null check and throw an error message, something like "Cannot
perform native java compilation: could not find the System's Java compiler. Maybe
install a JDK?"
FYI)
https://groups.google.com/g/optaplanner-dev/c/2UkiCjPua5w/m/BebSTW0zCAAJ
https://stackoverflow.com/questions/2543439/null-pointer-exception-while-...
--
This message was sent by Atlassian Jira
(v8.13.1#813001)