Referencing a component with full path fails in ColdFusion 2016 -


we moving coldfusion 2016 coldfusion 10 , have noticed getting errors in our existing code base find confusing.

we have several components methods expected return specific type. in versions of coldfusion prior 2016, specify full path component containing type in order work.

for example, not work in coldfusion 2016:

public root.model.beans.myobject function createmyobject() {     // blah blah... } 

running same code under coldfusion 2016 produces error "the value returned createmyobject function not of type root.model.beans.myobject" (it is).

this does work in coldfusion 2016:

public myobject function createmyobject() {     // blah blah... } 

the reverse true in coldfusion 10 - first example works , second doesn't.

my question why this? there setting controls behavior? concerned upshot when trying reference components same name, different paths. how can differentiate between component named service.cfc found in /root/model/beans/ , 1 found in in /root/widget/api/?

i suppose change affected return types "any", why should have to?

i'm sure i'm missing simple , appreciate in determining is. thanks.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -