tkobayas opened a new pull request, #6700:
URL: https://github.com/apache/incubator-kie-drools/pull/6700
… compilation
Drools 10 requires Java 17+ at runtime, so accepting sub-17 language levels
for DRL compilation was dead surface area. Restrict
JavaConfiguration.LANGUAGE_LEVELS to {17, 18, 19, 20, 21}, bump
JavaCompilerSettings defaults from "1.8" to "17", and update the javadoc,
tests, and stale literals that referenced obsolete versions.
findJavaVersion(String) keeps its silent fallback to "17", so stale config
in user POMs (maven.compiler.release=11) or system properties
(drools.dialect.java.compiler.lnglevel=1.8) keeps working. The programmatic
setters (setJavaLanguageLevel, setSourceVersion, setTargetVersion) now throw on
sub-17 input.
Also remove the dead MemoryUtil class. It had zero callers anywhere in the
repository; its core predicate hasPermGen() checked for Java 1.5/1.6/1.7, but
PermGen was removed in Java 8.
---
Closes https://github.com/apache/incubator-kie-drools/issues/6572
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]