tracker issue : CF-3808960

select a category, or use search below
(searches all categories and all time range)

Cannot use annotation to set argument default

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 08/20/2014

Components: Language

Versions: 11.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: CF11_Final / 292202

Priority/Frequency: Major / Some users will encounter

Locale/System: ALL / Platforms All

Vote Count: 1

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on August 25, 2019 using build 2016.0.01.298513
This errors:
* @x.type numeric
* @x.default 0
function f(x){


he 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.
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser  	Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36 HB-dev-e0d8a48f
Remote Address
Date/Time  	20-Aug-14 01:28 PM
Stack Trace

	at coldfusion.compiler.ExprAssembler.cast(
	at coldfusion.compiler.StmtAssembler.cast(
	at coldfusion.compiler.ExprAssembler.cast(
	at coldfusion.compiler.StmtAssembler.cast(
	at coldfusion.compiler.FunctionAssembler.argumentDefStmt(
	at coldfusion.compiler.FunctionAssembler.assembleStatement(
	at coldfusion.compiler.FunctionAssembler.paramDef(
	at coldfusion.compiler.FunctionAssembler.assembleStatement(
	at coldfusion.compiler.StmtAssembler.block(
	at coldfusion.compiler.FunctionAssembler.function(
	at coldfusion.compiler.FunctionAssembler.assemble(
	at coldfusion.compiler.TemplateAssembler.assembleFunctions(
	at coldfusion.compiler.TemplateAssembler.assemble(
	at coldfusion.compiler.NeoTranslator.translateJava(
	at coldfusion.compiler.NeoTranslator.translateJava(
	at coldfusion.runtime.TemplateClassLoader$TemplateCache$1.fetch(


Obviously it should default the x argument to 0.


----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3808960

External Customer Info:
External Company:  
External Customer Name: Adam Cameron.
External Customer Email:  
External Test Config: My Hardware and Environment details:



(Oh, it's bung on CF9-11).
Comment by External U.
11318 | August 20, 2014 07:06:39 AM GMT
+1 ......................
Vote by External U.
11319 | November 23, 2014 10:32:06 PM GMT
Hi Adobe, I've verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Thanks!, -Aaron
Comment by Aaron N.
31200 | August 25, 2019 07:05:06 AM GMT