Skip to content
Advertisement

convert back to class type List from GenericEntity – anonymous class

I am getting class cast exception at line 7 in the code below. I have written line 1-3 to provide data that comes from a rest service call and these line can’t be changed from my side. I must cast the response to List

JavaScript

Advertisement

Answer

Thank you @Michael. I had to run a getEntity on gEntity and then cast it as per the documentation

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement