Title:
[ANeff] Bug for: array dump header should display (unsynchronized) and ({dataType})
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Aaron Neff / ()
Created: 04/29/2018
Components: Debugging, writeDump
Versions: 2018
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: 2018.0.01.308605 (PreRelease) / 2018,0,0,308863
Priority/Frequency: Normal / Very few users will encounter
Locale/System: / Platforms All
Vote Count: 0
Issue: ordered struct dump header displays (ordered), good, but unsynchronized array dump header doesn't display (unsynchronized) and typed array header doesn't display ({dataType})
Repro (using writeDump() as the example, but fix should also apply to cfdump):
{code:java}
<cfscript>
myStruct = [:]
writeDump(myStruct)
//Actual and Expected Result: dump header is "struct (ordered) [empty]" good
myUnsynchronizedArray = arrayNew(1,false)
writeDump(myUnsynchronizedArray)
//Actual Result: dump header is "array [empty]"
//Expected Result: dump header is "array (unsynchronized)"
myStringArray = ["string"][]
writeDump(myStringArray)
//Actual Result: dump header is "array [empty]"
//Expected Result: dump header is "array (string)"
myUnsynchronizedStringArray = arrayNew(1,false,"string")//Currently throws exception. Will work when dataType parameter is added to arrayNew() per Named Arguments ArgumentCollection support
writeDump(myUnsynchronizedStringArray)
//Expected Result: dump header is "array (unsynchronized) (string)"
//Note: It should be "(unsynchronized) (string)", not "(string) (unsynchronized)" b/c type should come before dataType
</cfscript>
{code}
Attachments:
Comments: