emfjson / emfjson-jackson

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

Reader should skip the current JSON element when a feature is not found #51

Closed petardp closed 9 years ago

petardp commented 9 years ago

This change fixes a bug where the StreamReader returns a wrong object whenever a structural feature is not found. The issue can be reproduced when there is an object reference in the JSON, for which there is no corresponding feature in the EMF model. In this case the StreamReader will continue parsing instead of skipping the whole element, thus ending up in a wrong state. See new test cases which simulate the issue.

ghillairet commented 9 years ago

Thanks, I'll take a look at it soon.

petardp commented 9 years ago

Thanks a lot for merging this. Any date for the 0.11 release?

ghillairet commented 9 years ago

There’s a few things to do before the release, so probably not before the end of this month.

On Tuesday 5 May 2015 at 09:37, Petar Petrov wrote:

Thanks a lot for merging this. Any date for the 0.11 release?

— Reply to this email directly or view it on GitHub (https://github.com/ghillairet/emfjson/pull/51#issuecomment-98983197).