2 ms·
Even code which isn't "threadsafe" shouldn't crash the VM.
by twic 10y ago
Even code which isn't "threadsafe" shouldn't crash the VM.
- 0x0 10y agoExactly, especially so because that would totally break sandboxing. Granted, applets are way beyond their best-before date, but there may be other reasons a SecurityManager sandbox is in place, perhaps for isolating multiple .wars from different sources, or maybe someone even wrote a sandbox for executing user-supplied code. Java's raison d'être was arguably the byte code verifier. Being able to crash the JVM with validated byte code is always a bug.