Name: krC82822 Date: 07/31/2001
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
Bug #4302814 describes the problem. It is closed as "not a bug".
I disagree and think it is a bug. I hope it can be re-opened.
Why should shutdown hooks be invoked for "java", but not for "javaw" processes?
How does the general concept of "javaw" differ from "java" in this respect to
justify a different behavior of java.lang.Runtime?
Think of GUI apps, which are preferably launched using "javaw". When the user
logs out or shuts down the system, such apps have no chance to flush some
files, store some settings, perform some cleanup etc. The only workaround is to
launch the app using "java", which is not a viable alternative because it opens
an ugly terminal window.
(Review ID: 126995)
======================================================================