Looks like serialization of Thread (for exp, Thread.currentThread()) fails with StackOverflow on JDK11, due to addition of a new property. Looks like this might be via ClassLoader, which probably should not really be serialized anyway.
Passed on JDK 8.