tracker issue : CF-3808960

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

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:
{code}
/**
* @x.type numeric
* @x.default 0
*/
function f(x){
	writeDump(arguments);
}
{code}

Error:

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.
 
Resources:
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  	127.0.0.1
Referrer  	
Date/Time  	20-Aug-14 01:28 PM
Stack Trace


java.lang.NullPointerException
	at coldfusion.compiler.ExprAssembler.cast(ExprAssembler.java:1437)
	at coldfusion.compiler.StmtAssembler.cast(StmtAssembler.java:67)
	at coldfusion.compiler.ExprAssembler.cast(ExprAssembler.java:1408)
	at coldfusion.compiler.StmtAssembler.cast(StmtAssembler.java:558)
	at coldfusion.compiler.FunctionAssembler.argumentDefStmt(FunctionAssembler.java:384)
	at coldfusion.compiler.FunctionAssembler.assembleStatement(FunctionAssembler.java:224)
	at coldfusion.compiler.FunctionAssembler.paramDef(FunctionAssembler.java:302)
	at coldfusion.compiler.FunctionAssembler.assembleStatement(FunctionAssembler.java:219)
	at coldfusion.compiler.StmtAssembler.block(StmtAssembler.java:230)
	at coldfusion.compiler.FunctionAssembler.function(FunctionAssembler.java:194)
	at coldfusion.compiler.FunctionAssembler.assemble(FunctionAssembler.java:95)
	at coldfusion.compiler.TemplateAssembler.assembleFunctions(TemplateAssembler.java:449)
	at coldfusion.compiler.TemplateAssembler.assemble(TemplateAssembler.java:182)
	at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:394)
	at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:160)
	at coldfusion.runtime.TemplateClassLoader$TemplateCache$1.fetch(TemplateClassLoader.java:467)

[etc]

Obviously it should default the x argument to 0.

-- 
Adam

----------------------------- 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:

Attachments:

Comments:

(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