Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4664

Add @ThreadInterrupt to console scripts automatically

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8-beta-4
    • 1.8-rc-1, 1.9-beta-1
    • None
    • None
    • Patch

    Description

      The attached patch automatically adds @ThreadInterrupt to the scripts in the console. This allows the "interrupt" button to work properly even if the script contains infinite loops.

      Without the patch, the following script keeps running even if we click on the interrupt button :

      while (true) {
      1
      }
      

      After the patch, the script interrupts properly.

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            melix Cédric Champeau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: