jdereg / json-io

Convert Java to JSON. Convert JSON to Java. Pretty print JSON. Java JSON serializer. Deep copy Java object graphs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ClassCastException

esial opened this issue · comments

commented

On Samsung Galaxy S10E (SM-G970F) - Android 9 I'm getting:

java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to java.util.Collection
at com.cedarsoftware.util.io.ObjectResolver.traverseCollection(SourceFile:3)
at com.cedarsoftware.util.io.Resolver.readIfMatching(SourceFile:9)

Last read:
{"@type":"com.package.CommunicationList","@items":["ASD","QWE_QWE","DFG_ERT_ERT"]}

Can you post sample input that causes this to happen?

commented

I've discovered it was an obfuscation problem. Sorry for bothering.