-
Bug
-
Resolution: Done
-
Major
-
7.48.0.Final
-
None
-
2020 Week 52-03 (from Dec 21)
-
1
-
Undefined
-
NEW
-
NEW
-
---
-
---
If you use JRE instead of JDK, ToolProvider.getSystemJavaCompiler() returns null and will result in NPE later.
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-using-java-compiler-api/2543485#2543485
https://stackoverflow.com/questions/65682295/course-timetabling-and-conference-scheduling-examples-are-broken-in-optaplanner