You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2019/03/02 12:55:55 UTC
[GitHub] cakofony commented on a change in pull request #260: [LOG4J2-2561]
JEP223 version detection fix for JDK 9 and up
cakofony commented on a change in pull request #260: [LOG4J2-2561] JEP223 version detection fix for JDK 9 and up
URL: https://github.com/apache/logging-log4j2/pull/260#discussion_r261825957
##########
File path: log4j-core/src/main/java/org/apache/logging/log4j/core/layout/AbstractStringLayout.java
##########
@@ -134,7 +134,13 @@ private static boolean isPreJava8() {
final String version = System.getProperty("java.version");
Review comment:
Can we make this method delegate to a package-private `static boolean isPreJava8(String javaVersion)` which we can invoke directly from the test? The reflective method is likely to cause failures if we refactor this code in the future, and setting the `java.version` system property may have other consequences which I'd prefer to avoid.
----------------------------------------------------------------
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
With regards,
Apache Git Services