Skip to content

Fix Deserialization error when "extensions" contains "extra" field - #10

Merged
joshbooks merged 3 commits into
CaliDog:masterfrom
nitram22:master
Nov 4, 2020
Merged

Fix Deserialization error when "extensions" contains "extra" field#10
joshbooks merged 3 commits into
CaliDog:masterfrom
nitram22:master

Conversation

@nitram22

Copy link
Copy Markdown
Contributor

Hi,

I tried to fix the issue that the library isn't able to parse an entry that contains the field "extra" in the "extensions" section.

@joshbooks has tried to fix the bug before, so I used his solution as a starting point. Now the code doesn't create an infinite loop anymore and still parses the extensions correctly.

Maybe you guys could look into it and see if it works for you.
Unfortunately I had to replace the NotImplementedException with an UnsupportedOperationException, because I work with OpenJDK and have no access to the reflectiveObjects packages.

@nitram22

Copy link
Copy Markdown
ContributorAuthor

The llinked issue is: #7

Unfortunately i can't link this pull request myself.

@joshbooksjoshbooks linked an issue Jul 9, 2020 that may be closed by this pull request

@joshbooksjoshbooks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@nitram22

Copy link
Copy Markdown
ContributorAuthor

Could you please merge this if the solution is still okay?

@joshbooks
joshbooks merged commit 027705c into CaliDog:masterNov 4, 2020
@nitram22

Copy link
Copy Markdown
ContributorAuthor

Hi Josh, could you please build a new release so the error doesn't occur anymore ? Thank you!

@joshbooks

Copy link
Copy Markdown
Contributor

@nitram22 done

@nitram22

Copy link
Copy Markdown
ContributorAuthor

Thank you !

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IllegalStateException if entry contains "extra" field

2 participants

@nitram22@joshbooks