Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix #657 incorrect encoding of embedded-recursive types and overlapping tags#659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ngicks wants to merge4 commits intojson-iterator:master
base:master
Choose a base branch
Loading
fromngicks:fix-embedded-recursive-type

Conversation

@ngicks
Copy link

@ngicksngicks commentedFeb 18, 2023
edited
Loading

Just to explore how tofix#657 .

A simple fix to recursive embedded types is to add recursion check.
This, however, breaks other test cases.

I found that it is hard to fix the problem by changing the currentresolveConflictBinding implementation, because it does it without field information, while Go'sdominantField does it with field info.
Adding the overlapping-field-resolver implementation almost identical to that of the std'sencoding/json, of course, fixes the problem.

This PR introduces significant changes to the code base (at least it's not like 50 lines fix).
So this might not be suitable for the goal of this library.

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Recursive struct type causes stack overflow / Handling of overlapping field tagged name is not aligned to std

1 participant

@ngicks

[8]ページ先頭

©2009-2025 Movatter.jp