tracker issue : CFB-4198281

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: Internal exception bubbles-up as false syntax error

| View in Tracker

Status/Resolution/Reason: To Fix//BugVerified

Reporter/Name(from Bugbase): Aaron Neff / ()

Created: 02/14/2018

Components: Editor Features, Syntax Checking

Versions: 2016,2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 302777+ /

Priority/Frequency: Normal / Most users will encounter

Locale/System: / Windows 10 64 bit

Vote Count: 0

[ANeff] Bug for: Internal exception bubbles-up as false syntax error

Issue: The following code causes CFB to bubble-up an internal exception as a false syntax error:

   1|<cfscript>
   2| myList = "a,b,c";
(x)3| myList.listEach(function(element) {});
   4| //a comment
   5| //another comment
   </cfscript>

Actual Result: Syntax error on line 3.
- Line 3's syntax error message is: "com.adobe.editor.cfml.parser.generated.ASTcfcomment cannot be cast to com.adobe.editor.cfml.parser.generated.ASTfuncparams"

Expected Result: No syntax error.

Note: If one of the comments is removed, then no syntax error. Also, if the "element" parameter is removed, then no syntax error.

Attachments:

Comments: