emfjson / emfjson-jackson

JSON Binding for Eclipse Modeling Framework
https://emfjson.github.io
Other
80 stars 23 forks source link

Fix infinite loop when an array is given instead of object #106

Closed janhicken closed 4 years ago

janhicken commented 5 years ago

If a JSON contained an array instead of an object for a given reference that expects an object normally, the EObjectDeserializer will hang in an infinite loop. See the added test for an example.

This fixes the issue.