Uploaded image for project: 'JBoss Log Manager'
  1. JBoss Log Manager
  2. LOGMGR-344

`setLongThreadID` fails on some JDKs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.4.Final
    • 3.0.3.Final
    • core
    • None

    Description

      Since 3.0.3.Final, the `setLongThreadId` method fails with an exception on JDK >= 16 due to a signature-polymorphism mismatch.

      The failure looks like this:

      Unable to find source-code formatter for language: text. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      java.lang.invoke.WrongMethodTypeException: expected (ExtLogRecord,long)LogRecord but found (ExtLogRecord,long)void
      	at java.base/java.lang.invoke.Invokers.newWrongMethodTypeException(Invokers.java:523)
      	at java.base/java.lang.invoke.Invokers.checkExactType(Invokers.java:532)
      	at org.jboss.logmanager.ExtLogRecord.superSetLongThreadID(ExtLogRecord.java:692)
      	at org.jboss.logmanager.ExtLogRecord.setLongThreadID(ExtLogRecord.java:711)
      	at org.jboss.logmanager.ExtLogRecordTests.checkForLongThreadIdRegression(ExtLogRecordTests.java:14)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      
      

      Attachments

        Activity

          People

            dlloyd@redhat.com David Lloyd
            dlloyd@redhat.com David Lloyd
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: