Details
Description
When using xstream 1.4.3 on a Mac, it simply locks up a thread.
Note that this affects Macs ONLY. Code is fine on Windows and Linux.
Debugging shows that line 38 in class com.thoughtworks.xstream.core.JVM never exists from the 'loadClass("java.awt.Color")'
Attached is the stack trace.
Further investigation shows that this is a known problem on Macs and that loading class java.awt.Color has nasty side-effects which cause threads to lock up on some cases.
Proposed solution:
either load a different class, or find a different way to test whether AWT is present.
Issue Links
- is related to
-
MWAR-295 weird icon on mac due awt toolkit setup
Hmm. No solution yet. When I try to load AWTError, it succeeds, but an installation without AWT support will fail later then. Same applies, when I try to load Color without initializing the class :-/
What happens when you call
directly before you initialize XStream?