Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8075604

jjs exits even when non-daemon threads are still active

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 8u60, 9
    • core-libs
    • b56
    • generic
    • generic

        var Thread = java.lang.Thread;
        var thread = new Thread(function() {
            while(true) {
                print("hello");
            }
        });

        thread.daemon = false;
        thread.start();


        Expected output:

        "hello" being printed continuously (infinite loop)

        Output seen:

        jjs shell exits immediately

              sundar Sundararajan Athijegannathan
              sundar Sundararajan Athijegannathan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: