Unresolved
Details
Assignee
Michael OffnerMichael OffnerReporter
Brad WoodBrad WoodLabels
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
Fix versions
Affects versions
Priority
New
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Brad Wood
Brad WoodLabels
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
Fix versions
Affects versions
Priority
Created 3 June 2022 at 17:39
Updated 9 August 2024 at 09:38
I found an inconsistency in Lucee where function argument defaults aren't applied when
the UDF was called via
argumentCollection
with not all args suppliednamed arguments were used
full null support is enabled
When null support is off, in all cases the default value is applied to
arg2
, however when null support is switched on, the default value isn’t used but ONLY when using named arguments. The default value is still used when positional arguments are used. I’m not sure which behavior is considered “correct”, but I would prefer to see the default values used in this case. i.e.arg2
should not just be null, but fully undefined.This has caused this related ticket in ColdBox: