-
Notifications
You must be signed in to change notification settings - Fork 18k
encoding/json: json encoder fails for embedded non-struct fields #4474
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
Sorry, part of my stack trace is off by three lines because I inserted some println()s in encode.go. It should be: ----- stack segment boundary ----- reflect.(*rtype).NumField(0x86778, 0xc200043480, 0xc200042000, 0x86778) /Users/thomas.kappler/software/go/src/pkg/reflect/type.go:623 +0x7e encoding/json.typeFields(0xc200042000, 0xb7768, 0xc200042000, 0xb7768, 0x0, ...) /Users/thomas.kappler/software/go/src/pkg/encoding/json/encode.go:604 +0x335 encoding/json.cachedTypeFields(0xc200042000, 0xb7768, 0x192, 0xc200042000, 0xb7768, ...) /Users/thomas.kappler/software/go/src/pkg/encoding/json/encode.go:691 +0xcb |
https://golang.org/cl/6938045 fixes the double panic due to the incorrect type assertion. It does not fix the overall issue. |
This issue was closed by revision cdec085. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
by tkappler:
The text was updated successfully, but these errors were encountered: