Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.7.25
-
None
-
JDK 1.8
Maven Eclipse Jetty plugin 9.4.8.v20180619
SLF4J API - 1.7.25
SLF4J EXT - 1.7.25
-
major
-
P2
Description
Our code has the below code in different places with different version of exit() method.
LOGGER.exit()
LOGGER.exit(Object)
LOGGER.exit(booleanValue)
We are currently using SLF4J API 1.7.2 and now we are trying to update to SLF4J 1.7.25 to address one security vulnerability issue. During update, we are seeing this exception
Caused by: java.lang.NoSuchMethodError: org.slf4j.ext.XLogger.exit(Ljava/lang/Object;)V
Seems XLogger exit() method is enhanced in 1.7.6 and see the method signature is changed (as per the enhancement request from the ticket https://jira.qos.ch/browse/SLF4J-188) from
public void exit(Object result) {
....
}
to
public <T> T exit(T result) {
{
.....
}
I think this change is not backward compatible and we could not able to update the SLF4J version.
Is it possible to make the change backward compatible? Or Please suggest how we can overcome the exception during update?