On Mar 8, 2004, at 12:55 PM, Adam Heath wrote:
Also, shutdown hooks in kaffe are not run.

OK, that's bad. Do you have a small (5-10 lines) test case?

I'll make one.


==
bash-2.05b$ /usr/lib/kaffe/bin/java -cp . ShutdownHookTest
bash-2.05b$ /usr/lib/j2se/1.4/bin/java -cp . ShutdownHookTest
ShutdownHookTest thread running
bash-2.05b$ cat ShutdownHookTest.java
public class ShutdownHookTest
extends Thread
{
public void run()
{
System.out.println( "ShutdownHookTest thread running" );
}


        public static void main( String[] args )
        {
                ShutdownHookTest sht = new ShutdownHookTest();
                Runtime.getRuntime().addShutdownHook( sht );
        }
}
==

This works fine for me and the one that comes with kaffe, "test/regression/ShutdownHookTest.java", works as well. Hmm, could there be something else going on?

thanks,

tim stack


_______________________________________________ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to