You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CompactFormatter supports formatting thread ids so the code should be modified to prefer calling LogRecord::getLongThreadID and fallback toLogRecord::getThreadID only if it the long version is not present. This will allow the formatter to support newer JDKs without introducing dependency on the newer JDK version.
JDK16 added new a method
LogRecord::getLongThreadID
and deprecatedLogRecord::getThreadID
. Changes are filed under: JDK-8245302 - Upgrade LogRecord to support long thread ids and remove its usage of ThreadLocalThe CompactFormatter supports formatting thread ids so the code should be modified to prefer calling
LogRecord::getLongThreadID
and fallback toLogRecord::getThreadID
only if it the long version is not present. This will allow the formatter to support newer JDKs without introducing dependency on the newer JDK version.This issue is forward port of jakartaee/mail-api#529
For Android, MethodHandles are only available in Oreo | 8.0.0
https://source.android.com/setup/start/build-numbers
https://developer.android.com/reference/java/lang/invoke/package-summary
The text was updated successfully, but these errors were encountered: