Reasons I hate Java #102 – The Lowest Common Denominator

Why don’t you provide information as to why the VM is shutting down?

On some platforms a native process can’t distinguish a shutdown due to exit from a shutdown due to termination. Other platforms provide much richer capabilities, in some cases including notification of system suspension and restart or of imminent power failure. In short, it’s impossible to generalize such information in a portable way.

Translation. Some operating systems are crippled. Instead of adding additional methods which could return certain ‘unknown’ values when running on legacy hardware, we decided that we’d just handicap Java running on every single OS (even Solaris).

Brilliant.




%d bloggers like this: