[ https://issues.apache.org/jira/browse/LOG4J2-1498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Remko Popma updated LOG4J2-1498: -------------------------------- Fix Version/s: (was: 2.8) 2.8.1 > [Java 9] fix dependency on old JDK versioning scheme > ---------------------------------------------------- > > Key: LOG4J2-1498 > URL: https://issues.apache.org/jira/browse/LOG4J2-1498 > Project: Log4j 2 > Issue Type: Bug > Components: Core, Layouts > Affects Versions: 2.6.2 > Reporter: Remko Popma > Fix For: 2.8.1 > > > AbstractStringLayout currently has this code: > {code} > // LOG4J2-1151: If the built-in JDK 8 encoders are available we should > use them. > private static boolean isPreJava8() { > final String version = System.getProperty("java.version"); > final String[] parts = version.split("\\."); > try { > final int major = Integer.parseInt(parts[1]); > return major < 8; > } catch (final Exception ex) { > return true; > } > } > {code} > With Java 9, this will not work correctly. (Impact is very small, but > anyway...) -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org