builder.toVirtualInheritance(): scoping issues

Description

The following is called in /coldbox/system/ioc/Builder.cfc, referencing arguments.target without any scope:

It is unscoped due to being inside closure (so arguments.target would not work). However, this causes tough to track down bugs in applications that have old style coldfusion scoping and doing something like the following, where myQuery has a target column in it:

Activity

Show:
Luis Majano
January 18, 2019, 1:41 PM

can you expand the error? I am not getting it sorry?

Dominic Watson
January 18, 2019, 1:54 PM

The issue is that if you have a field named target in the query that is being looped over, target will be a simple value and target.injectPropertyMixin( ... ) will then fail with "Method does not exist on string..." (or similar).

Luis Majano
February 20, 2019, 11:33 PM

scope target var

Assignee

Luis Majano

Reporter

Dominic Watson

Labels

None

Components

Fix versions

Priority

Major
Configure