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

Activity

Show:

Zac Spitzer 15 June 2020 at 19:45

Please try the latest snapshot LDEV-2748

Pothys - MitrahSoft 15 June 2020 at 15:07

, I hope this issue was fixed in lucee version 5.3.8.6-SNAPSHOT. So shall I close this ticket?

Pothys - MitrahSoft 4 May 2020 at 12:02

I've checked this ticket with lucee latest version 5.3.7.19-SNAPSHOT. And also confirmed this issue happened as same as per above related tickets.

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New 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

Affects versions

Created 4 May 2020 at 02:22
Updated 7 July 2020 at 07:15
Resolved 7 July 2020 at 07:15

Flag notifications