[kaffe] Runtime.addShutdownHook()
Dalibor Topic
robilad at yahoo.com
Wed May 7 01:30:01 PDT 2003
hi Mark,
thanks, I've checked it in. Could you take a shot at porting over the
shutdown-hook handling code from classpath's reference implementation?
cheers,
dalibor topic
--- Mark Wielaard <mark at klomp.org> wrote:
> Hi,
>
> Since Runtime shutdown hooks are not guaranteed to run it would be nice
> to be able to add them anyway. Currently the code throws an Error which
> terminates my program.
>
> Could you consider changing the code to something like the following?
>
> diff -u -r1.21 Runtime.java
> --- libraries/javalib/java/lang/Runtime.java 21 Jan 2003 11:28:25 -0000
> 1.21
> +++ libraries/javalib/java/lang/Runtime.java 27 Apr 2003 11:57:39 -0000
> @@ -177,7 +177,7 @@
>
> public void addShutdownHook(Thread hook) {
> // XXX implement me
> - throw new kaffe.util.NotImplemented(
> + System.err.println("WARNING: Not implemented method called " +
> getClass().getName() + ".addShutdownHook()");
> }
>
> Cheers,
>
> Mark
>
>
> _______________________________________________
> kaffe mailing list
> kaffe at kaffe.org
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
More information about the kaffe
mailing list