Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 09/24/2012
Components: Language, CF Component
Versions: 10.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: Final / 286437
Priority/Frequency: Trivial / Unknown
Locale/System: English / Platforms All
Vote Count: 0
Currently, duplicate applicationStop()s are not ignored and the first one throws an exception.
Repro:
Application.cfc
---------------
component {THIS.name = "TestApplicationStopRepeated";}
index.cfm
---------
<cfscript>
applicationStop();
applicationStop();
</cfscript>
Actual Result: Application TestApplicationStopRepeated does not exist (or "Application '' does not exist." if application is unnamed). The error occurred in line 3.
Expected Result: Ignore the duplicate applicationStop() and throw no error.
First, it's interesting that it knows the name of the application, yet says it doesn't exist.
I realize that duplicate applicationStop()s are unnecessary. But is it necessary to throw an exception? If not, I'd just suppress it. Thoughts?
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3335963
External Customer Info:
External Company:
External Customer Name: itisdesign
External Customer Email:
Attachments:
Comments: