Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2561

In log4j-core AbstractStringLayout java version detection is not JEP223 compatible

    XMLWordPrintableJSON

Details

    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ulrichenslin Ulrich Enslin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3.5h
                3.5h