Title:
Bug 87009:[ANeff] Bug for: Incorrect errors for duplicate "case" valuesPlease consider this example:<cfscript> switch("a") { case "b": {break;} case "b": {break;} }</cfscript>This is the error message:-
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 08/03/2011
Components: Language, Exception Handling
Versions: 9.0.1
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 / 280787
Priority/Frequency: Normal / Unknown
Locale/System: English / Win All
Vote Count: 0
Problem:
[ANeff] Bug for: Incorrect errors for duplicate "case" valuesPlease consider this example:<cfscript> switch("a") { case "b": {break;} case "b": {break;} }</cfscript>This is the error message:-----------Context validation error for the cfcase tag. The cfswitch tag has a duplicate cfcase tag for value B. ColdFusion cannot determine the line of the template that caused this error. This is often caused by an error in the exception handling subsystem. -----------Bug 1: This code is "case" within "switch" (script), but the error is for <cfcase> within <cfswitch> (tag).Bug 2: CF can't determine the line number?
Method:
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3043932
Deployment Phase: Release Candidate
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email: 3D1D17B03C844EBF992001AC
External Test Config: 08/03/2011
Attachments:
Comments: