Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.11.2
-
Patch, Important
Description
The function isPreJava8() will detect java 9 and higher as being pre java 8, because the logic does not take JEP223 into account.
The same logic is correct in org.apache.logging.log4j.util.Constants#getMajorVersion, so simply modified the logic in AbstractStringLayout to work the same in the PR.
This seems like a small change, but it prevents log4j from being JDK 9 and up compatible.