jjs exits even when non-daemon threads are still active

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 8u60, 9
    • Component/s: 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

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

                Created:
                Updated:
                Resolved: