Issues
- Cannot declare a property with the name "firstName" using the compact cfscript syntaxLDEV-2929Resolved issue: LDEV-2929Michael Offner
- Regression: Property shorthand in script components brokenLDEV-2874Resolved issue: LDEV-2874Michael Offner
- Bug with the word "beanFactory" like name of propertyLDEV-2826Resolved issue: LDEV-2826Michael Offner
- Short-hand component properties parsed incorrectly - regression from 5.3.3LDEV-2748Resolved issue: LDEV-2748Michael Offner
- Regression: In Lucee 5.3.3, component Property function does not recognize variables defined at the top of that ComponentLDEV-2645Resolved issue: LDEV-2645Michael Offner
- Implicit Accessors Do Not Respect TypesLDEV-1560Resolved issue: LDEV-1560Michael Offner
- use default value on cfproperty regardless of accessorsLDEV-929Resolved issue: LDEV-929Michael Offner
- Property validation should throw error for auto population of setterLDEV-816Resolved issue: LDEV-816Michael Offner
- cfproperty default attribute should preserve types and support complex typesLDEV-801Michael Offner
- Short-hand syntax should work for property as per paramLDEV-48
Cannot declare a property with the name "firstName" using the compact cfscript syntax
Description
Environment
Attachments
duplicates
Details
Assignee
Michael OffnerMichael OffnerReporter
Graham BakayGraham BakayPriority
NewLabels
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
Details
Details
Assignee
Reporter
Priority
Labels
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
Activity
Zac Spitzer16 June 2020 at 11:27
works for me
Pothys - MitrahSoft16 June 2020 at 05:55
@Graham Bakay, 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:38Edited
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.
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";