tracker issue : CF-3514590

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

Annotations with ":" do not work inline in script based functions

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Luis Majano / Luis Majano (Luis Majano)

Created: 03/06/2013

Components: Language

Versions: 10.0

Failure Type: Crash

Found In Build/Fixed In Build: Final / CF10_Update14

Priority/Frequency: Major / All users will encounter

Locale/System: English / Platforms All

Vote Count: 2

Problem Description:
Annotations with ":" do not work inline in script functions, which as per the docs it should work.

Steps to Reproduce:

function testDivideByZero() mxunit:expectedException="DivideByZero"{
	assertEquals( 0, model.divide(2,0) );
}

The annotation is valid, but it chokes on the usage of ":"

Actual Result:

 Invalid CFML construct found on line 34 at column 43.
ColdFusion was looking at the following text:

:

Expected Result:

Valid syntax

Any Workarounds:

Add the annotation via javdoc comment

/**
* @mxunit:expectedException "DivideByZero"
*/
function testDivideByZero(){
	assertEquals( 0, model.divide(2,0) );
}

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

Watson Bug ID:	3514590

External Customer Info:
External Company:  
External Customer Name: LuisMajano
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

When will this get verified!! Hello?
Comment by External U.
16096 | July 10, 2013 10:16:11 AM GMT
Duplicate of #CF-3043394
Comment by External U.
16097 | July 10, 2013 10:28:38 AM GMT
+1 .
Vote by External U.
16099 | July 10, 2013 12:33:33 PM GMT
+1 should work as expected. -- Adam
Vote by External U.
16100 | July 10, 2013 03:56:49 PM GMT
Confirmed fixed in 10,0,14,291717. Good stuff.
Comment by External U.
16098 | October 14, 2014 03:48:46 PM GMT