Issues

Select view

Select search mode

 

Cannot declare a property with the name "firstName" using the compact cfscript syntax

Fixed

Description

Truly one of the weirdest bugs I've come across.

With this component:

component accessors="true" { property string thisWorks; property string firstName; // does not work property string thisAlsoWorks; }

And this code:

testcomp = new TestComponent(); writedump(testcomp);

Gets this result:

Workaround:
Use the older syntax: property type="string" name="firstName";

Environment

None

Attachments

2
  • 16 Jun 2020, 11:27 am
  • 11 Jun 2020, 05:59 pm

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 11 June 2020 at 18:02
Updated 16 June 2020 at 12:12
Resolved 16 June 2020 at 12:12

Activity

Show:

Zac Spitzer16 June 2020 at 11:27

works for me

Pothys - MitrahSoft16 June 2020 at 05:55

, Can you check this issue with latest snapshot of lucee. The issue has fixed from 5.3.8.6-snapshot onwards. And report here back. It'll improve the status of the ticket.

Pothys - MitrahSoft12 June 2020 at 07:24

Already I mentioned the version "before the 5.3.4.80-Release" in the above duplicate tickets.
But, as per snapshot, the issue starts from 5.3.5.38-snapshot onwards. It works fine in till 5.3.5.36-snapshot.

Zac Spitzer11 June 2020 at 18:38
Edited

still present in 5.3.8.3-SNAPSHOT, this is the same as LDEV-2748, but your test case is nice and simple

I removed line 2 for you

https://luceeserver.atlassian.net/browse/LDEV-2748 will be addressed in the current 5.3.8 Sprint

Graham Bakay11 June 2020 at 18:05

Ignore line 2 of the instantiation code—I was futzing around.

Flag notifications