Title:
Bug 86957:(Watson Migration Closure)If you take an array, convert it to WDDX, then convert it back to CFML, you can't arrayResize it
| View in TrackerStatus/Resolution/Reason: Closed/Won't Fix/
Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden (Raymond Camden)
Created: 06/24/2011
Components: Language, WDDX Serialization
Versions: 9.0.1
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Win All
Vote Count: 2
Problem:
If you take an array, convert it to WDDX, then convert it back to CFML, you can't arrayResize it. You can do other array functions like arrayLen/isArray.
Method:
<cfset source = []><cfwddx action="cfml2wddx" input="#source#" output="packet"><cfwddx action="wddx2cfml" input="#packet#" output="mirrorUniverseSource"><cfdump var="#mirrorUniverseSource#"><cfoutput>isArray? #isArray(mirrorUniverseSource)#<br/>len? #arrayLen(mirrorUniverseSource)#<br/></cfoutput><cfset arrayResize(mirrorUniverseSource,10)>
Result:
Error casting an object of type java.util.Vector cannot be cast to coldfusion.runtime.Array to an incompatible type. This usually indicates a programming error in Java, although it could also mean you have tried to use a foreign object in a different way than it was designed.java.util.Vector cannot be cast to coldfusion.runtime.Array
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3043877
External Customer Info:
External Company:
External Customer Name: Raymond Camden
External Customer Email: 5FBC41E943BD265C992015D5
External Test Config: 06/24/2011
Attachments:
Comments: