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: