You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/03/02 06:30:00 UTC
[jira] [Work logged] (LOG4J2-2561) In log4j-core
AbstractStringLayout java version detection is not JEP223 compatible
[ https://issues.apache.org/jira/browse/LOG4J2-2561?focusedWorklogId=206684&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-206684 ]
ASF GitHub Bot logged work on LOG4J2-2561:
------------------------------------------
Author: ASF GitHub Bot
Created on: 02/Mar/19 06:29
Start Date: 02/Mar/19 06:29
Worklog Time Spent: 10m
Work Description: ulrichenslin commented on issue #260: [LOG4J2-2561] JEP223 version detection fix for JDK 9 and up
URL: https://github.com/apache/logging-log4j2/pull/260#issuecomment-468891113
Jira LOG4J2-2561 added for this PR.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Issue Time Tracking
-------------------
Worklog Id: (was: 206684)
Time Spent: 10m
Remaining Estimate: 0h
> In log4j-core AbstractStringLayout java version detection is not JEP223 compatible
> ----------------------------------------------------------------------------------
>
> Key: LOG4J2-2561
> URL: https://issues.apache.org/jira/browse/LOG4J2-2561
> Project: Log4j 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.11.2
> Reporter: Ulrich Enslin
> Priority: Major
> Labels: easyfix, pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)