You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ivan Volosyuk (JIRA)" <ji...@apache.org> on 2006/10/11 13:59:21 UTC

[jira] Commented: (HARMONY-1824) [DRLVM] non-daemon thread dies when main thread finish

    [ http://issues.apache.org/jira/browse/HARMONY-1824?page=comments#action_12441431 ] 
            
Ivan Volosyuk commented on HARMONY-1824:
----------------------------------------

Even simplier test fails. Investigating...

public class Test extends Thread {
    public void run() {
        try {
            Thread.sleep(1000);
            System.err.println("PASSED");
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }

   public static void main(final String[] args) {
      (new Test()).start();
   }
}


> [DRLVM] non-daemon thread dies when main thread finish
> ------------------------------------------------------
>
>                 Key: HARMONY-1824
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1824
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All
>            Reporter: Ivan Volosyuk
>
> Simple test which fails for me:
> public class Test{
>    public static void main(final String[] args) throws Exception
>    {
>       Runnable worker = new Runnable() {
>           public void run()
>           {
>               try {
>                   Thread.sleep(1000);
>                   System.err.println("PASSED");
>               } catch (Throwable e) {
>                   e.printStackTrace();
>               }
>           }
>       };
>       new Thread(worker).start();
>    }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira