Closed
Description
Brian Clozel opened SPR-15453 and commented
It seems we're using a deprecated method in the spring-core module.
This fails the JDK9 build for now (see SPR-JDK9-180):
error 14-Apr-2017 00:03:04 /opt/bamboo-home/xml-data/build-dir/SPR-JDK9-JOB1/spring-core/src/main/java/org/apache/commons/logging/LogFactory.java:635: warning: [deprecation] setMillis(long) in LogRecord has been deprecated
error 14-Apr-2017 00:03:04 serialized.setMillis(getMillis());
error 14-Apr-2017 00:03:04 ^
error 14-Apr-2017 00:03:04 error: warnings found and -Werror specified
The setInstant
variant (introduced in JDK9) is the preferred one. In the meantime, can we ignore that warning so that the build is green with JDK9 again?
Affects: 5.0 RC1
Reference URL: http://download.java.net/java/jdk9/docs/api/java/util/logging/LogRecord.html#setMillis-long-
Issue Links:
- Revisit Commons Logging vs java.util.logging vs SLF4J vs Log4j 2 [SPR-14512] #19081 Revisit Commons Logging vs java.util.logging vs SLF4J vs Log4j 2
Referenced from: commits d50dab6