-
Bug
-
Resolution: Done
-
Major
-
3.0.3.Final
-
None
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)