Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-2889

Semi-colon required after BREAK and CONTINUE statements

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 4.2.0.001
    • Fix Version/s: None
    • Labels:
      None

      Description

      This is fine:

      <cfscript>
      do {
      	break;
      } while(false)
      </cfscript>
      

      This errors:

      <cfscript>
      do {
      	break
      } while(false)
      </cfscript>
      

      Error:

      Railo 4.2.0.001 Error (expression)
      Message	variable [BREAK] doesn't exist
      Stacktrace	The Error Occurred in
      /shared/git/blogExamples/railo/bugs/semicolonBug.cfm: line 4 
      2: // semicolonBug.cfm
      3: do {
      4: break
      5: } while(false)
      6: </cfscript>
      

      Same with the continue statement.

      Obviously this is just a pared-down repro case. My real-life code was not so contrived / simplified.


      Adam

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                adamcameroncf Adam Cameron
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: