Semi-colon required after BREAK and CONTINUE statements

Description

Copied from https://issues.jboss.org/browse/RAILO-2889

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 Question Mark this is just a pared-down repro case. My real-life code was not so contrived / simplified.


Adam

Environment

None

Activity

Show:

Pothys - MitrahSoft 23 April 2020 at 14:40

The issue was fixed on lucee 5 onwards. So I close this ticket.

Fixed

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Created 1 February 2015 at 16:21
Updated 23 April 2020 at 14:40
Resolved 23 April 2020 at 14:40

Flag notifications