Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-441

XLogger exit() method is not backward compatible after we update SLF4J API to 1.7.25

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.7.25
    • Core API
    • 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?

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            kodali2105 Ramesh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: