Sponge
Sponge copied to clipboard
Exceptions thrown in tasks submitted to TaskExecutorService are caught silently
Affected Product(s)
SpongeVanilla
Version
1.19.4-10.0.0-RC1304
Operating System
Linux/6.2.8-zen1-1-zen
Java Version
18.0.1/64-bit
Plugins/Mods
-
Describe the bug
Exceptions thrown in tasks submitted to TaskExecutorService seem to be caught silently. Nothing is logged to console.
The following code results in no console output:
final var scheduler = Sponge.server().scheduler().executor(container);
scheduler.submit(() -> {
throw new RuntimeException("This won't be logged.");
});
Link to logs
No response