Fixed
Details
Assignee
Michael OffnerMichael OffnerReporter
Brad WoodBrad WoodNew 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
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Brad Wood
Brad WoodNew 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
Fix versions
Affects versions
Priority
Created 22 July 2015 at 19:40
Updated 8 February 2016 at 21:21
Resolved 7 December 2015 at 10:14
Forum Reference:https://groups.google.com/forum/?fromgroups=&hl=en#!topic/railo/FQTR3BwXvVs
This behavior affects the information returned by getMetaData() on a CFC.
In ACF, I can use the following line in a script-based CFC and the value of the "name" attribute is "myService" and the value of the "inject" attribute is "". (Excepted behavior)
In Lucee, the metadata shows a key called "name" with the value "inject" and there is no key called "inject". The string "myService" doesn't make it into the metadata at all. To get it to work, I have to use the following syntax:
In this case, it's not an issue of "inject" getting a default value, but instead the parser getting confused and trying to use the name of the "inject" attribute as the value of the "name" key.
The code samples are properties used by the WireBox DI/ioc framework which parses CFC metadata to perform mixin injection.