Regression: Property shorthand in script components broken

Description

This issue was introduced somewhere between 5.3.4.80 and 5.3.5.92, and it is still present in the 5.3.6.53-RC.

// Foo.cfc
component accessors=true {

//property type="array" name="rts" default=[];
property array rts;
property FooBar[] foobars;
property struct barulations;
property numeric xyz;
property string abc;

public Foo function init(){ return this; }
}

// test.cfm
<cfscript>
f = new Foo();
dump(getMetadata(f));
</cfscript>

The dump above shows that the name and type values are swapped for everything except for struct and component. Additionally, calling any of the other property names results in a "no method exists" exception.

Environment

None

Assignee

Michael Offner

Reporter

Matt Q

Priority

New

Labels

Fix versions

None

Affects versions

Configure