Skip to content
Success

Changes

Summary

  1. Explicitly log exception from asynchronous tasks. (details)
Commit 251a5b6382c0d6997c0347e2320885993c2357cd by md_5
Explicitly log exception from asynchronous tasks.
Previously an UnhandledException would be thrown and the stack trace /
message would be printed to System.err in the default
UncaughtExceptionHandler for ThreadGroup. This was undesirable as it
meant that logging frameworks / exception monitors such as Sentry were
unable to get the exception. Additionally it would cause the death of
the thread in the ExecutorService. This change mimics the behaviour of
exceptions occuring during synchronous tasks.
The file was modified src/main/java/org/bukkit/craftbukkit/scheduler/CraftAsyncTask.java