List casted up to Object may throw an Internal Server error when toString is called on it
Last updated 2020-01-04 ·Reference W-6748579 ·Reported By 1 users
If you cast List to Object and then call toString method on it, it will cause an Internal Server Error. You may see a Gack error code.
Run the following code :
Map<String,Object> mapVar = new Map<String,Object>();
List<String> listVar = new List<String>();
Actual Result :
Line: NaN, Column: undefined
Response to EXEC was : Internal Server Error
Expected Result :
No Gack error
Reported By (1)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.