Inherited Metadata Usage - Singleton attribute evaluated before Scopes

Description

In the process method of Mapping.cfc, the singleton attribute is evaluated before the scope attribute ( the latter is an else if ). This means that if a transient declares noscope , but extends a singleton, it will become a singleton when wired up using getInstance. If a binder arg on scope is passed in, this does not happen.

This behavior can be seen in

Activity

Show:

Jon ClausenJune 14, 2022 at 2:37 PM
Edited

This appears to be a regression caused by this commit:

In which the separate if statements were changed to else if The behavior is correct on Coldbox v6.6.1 but this issue is present in the current @be

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Priority

Sentry

Created June 14, 2022 at 1:23 PM
Updated June 16, 2022 at 11:28 PM
Resolved June 16, 2022 at 11:28 PM