HF RL Explorer

Deserialization creates mismatching Collection/Map instances for subtypes, causing ClassCastException or…

Deserialization creates mismatching Collection/Map instances for subtypes, causing ClassCastException or…: a task in LegoFlow-SWE (Harbor dataset). When fromJson is used to deserialize JSON into a type that extends a standard collection or map (e.g., a subclass of ArrayList , HashMap , or a custom…

The task

When `fromJson` is used to deserialize JSON into a type that extends a standard collection or map (e.g., a subclass of `ArrayList`, `HashMap`, or a custom `List` implementation), Gson incorrectly creates an instance of the default implementation (such as `ArrayList`, `LinkedHashMap`, or `LinkedTreeMap`) instead of…

Part of Lego-X/LegoFlow-SWE.