Incorrect cfml syntax yields lucee.runtime.exp.NativeException instead of debugging info

Description

Some syntax errors cause Lucee errors instead of debugging info.
In several Lucee versions. Used 5.3.5 but also tried 5.3.6 and 5.2.x

In this particular case an extra) in chained syntax
Sample code
var q = wirebox.getInstance("QueryBuilder@qb")
.from("users")
.where("Name", arguments.UserName)
.andWhere("isArchive", 0)
.andwhere( "Password", hash(arguments.password & SOMESECRET ) ))
.first()

Error:
lucee.runtime.exp.NativeException: lucee.transformer.bytecode.statement.ExpressionAsStatement cannot be cast to lucee.transformer.bytecode.statement.tag.TagComponent

Environment

macOS Catalina with commandbox

Activity

Show:
Pothys - MitrahSoft
August 4, 2020, 3:54 PM

I've checked this ticket with latest version 5.3.8.21-SNAPSHOT too. I couldn't able to reproduce as you said. So, it throws

to me.
So, could you please check with this latest version of lucee if possible and report here back.

Wil de Bruin
August 4, 2020, 6:42 PM
Edited

Please close this issue. I don’t have the exact example here anymore, because I solved it in another way.
If this shows up again somewhere else I’ll file a new issue.

Regards,

Wil

Pothys - MitrahSoft
August 5, 2020, 12:46 PM

OK. I close this ticket as per reporter said. , if you face this again means, please report here. We'll reopen the ticket.

Cannot Reproduce

Assignee

Pothys - MitrahSoft

Reporter

Wil de Bruin

Priority

New

Labels

Fix versions

None
Configure