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

jjs exits even when non-daemon threads are still active

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u60, 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b56
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: