Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Abhishekh Gupta / Abhishekh Gupta ()
Created: 06/07/2017
Components: Language, CFSCRIPT
Versions: 11.0
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: 11,0,06,295053 / 2016
Priority/Frequency: Normal / All users will encounter
Locale/System: ALL / Platforms All
Vote Count: 0
Problem Description: Getting error while trying to assign default value for function arguments using JavaDoc notation.
It is working other metadata, the issue will only when using default.
Steps to Reproduce:
/**
* @displayName Test
* @output false
*
* @since 2017-06-07
* @version 1.0
*/
component {
/**
* I am a test function.
*
* @limitFrom.required false
* @limitFrom.default 0
*
* @limitBy.required false
* @limitBy.default 0
*
* @returnFormat "json"
*
* @since 2017-06-07
* @version 1.0
*/
remote query function test(
numeric limitFrom,
numeric limitBy
) {
return queryNew("");
}
}
Actual Result:
The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.
Null Pointers are another name for undefined values.
Expected Result: limitFrom and limitBy arguments should have a default value of 0
Any Workarounds:
The usual way - numeric limitFrom = 0
Attachments:
- June 07, 2017 00:00:00: test.cfc
Comments: