encoding/json: json encoder fails for embedded non-struct fields #4474
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.
by tkappler:
The text was updated successfully, but these errors were encountered: