[kaffe] Re: [OFBiz] Dev - Re: good day for kaffe 1.1.4 and ofbiz 2.1

Timothy Stack stack at cs.utah.edu
Mon Mar 8 18:34:02 PST 2004


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





More information about the kaffe mailing list