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

continue in switch generates verificartion error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-5
    • 1.0-beta-6
    • class generator
    • None

    Description

      i = 0
      while (true) {
      i++;
      switch

      { case 3: continue case 5: break }

      System.out.println;
      if (i ==10) break;
      }

      The continue keyword works if put outside of the switch

      Attachments

        1. BlockScope.patch
          1 kB
          Bing Ran
        2. AsmClassGenerator.patch
          1 kB
          Bing Ran

        Activity

          People

            jstrachan James Strachan
            bingran Bing Ran
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: