R
Roedy Green
Normally I would use Runtime.getRuntime().addShutdownHook( new
Thread() to ensure a file were closed automatically at shutdown.
I could not find any docs one way or the other, but, under any
circumstances does this happen automatically anyway?
I seem to vaguely recall reading the answer was no, but it was changed
in a recent JDK. Enlightenment?
--
Roedy Green Canadian Mind Products
http://mindprod.com
"There is an evil which ought to be guarded against, in the indefinite accumulation of property,
from the capacity of holding it in perpetuity by... corporations.
The power of all corporations aught to be limited in this respect.
The growing wealth acquired by them never fails to be a source of abuses."
~ James Madison (born: 1751-03-16 died: 1836-06-28 at age: 85)
Thread() to ensure a file were closed automatically at shutdown.
I could not find any docs one way or the other, but, under any
circumstances does this happen automatically anyway?
I seem to vaguely recall reading the answer was no, but it was changed
in a recent JDK. Enlightenment?
--
Roedy Green Canadian Mind Products
http://mindprod.com
"There is an evil which ought to be guarded against, in the indefinite accumulation of property,
from the capacity of holding it in perpetuity by... corporations.
The power of all corporations aught to be limited in this respect.
The growing wealth acquired by them never fails to be a source of abuses."
~ James Madison (born: 1751-03-16 died: 1836-06-28 at age: 85)