You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in golang.org/issue/21357 (golang/go#21357)
json unmarshal will ignore embedded pointers to unexported types in go1.10.
This test is obviously unhappy about it.
DO NOT SUBMIT: test still fails because of bug in encoding/json fix.
As of Go 1.10, a bug in reflect has been fixed, so it is no longer
possible to create pointers to embedded, unexported structs. As a result,
encoding/json's output has changed in these cases. (See golang/go#21357).
We make the same change in our fields package, for consistency.
Fixes#813.
Change-Id: I836ddc6f9c4e8ef9e37643b66f287f2916799c93
As discussed in golang.org/issue/21357 (golang/go#21357)
json unmarshal will ignore embedded pointers to unexported types in go1.10.
This test is obviously unhappy about it.
\cc @zombiezen @jba @dsnet
$ go version
go version devel +84f941ad4c Mon Nov 27 21:56:05 2017 -0500 darwin/amd64
$ go test
--- FAIL: TestAgainstJSONEncodingNoTags (0.00s)
fields_test.go:151: got
{Exported:1 unexported:0 Shadow:3 embed1:{Em1:4 Dup:0 Shadow:0 embed3:{Em3:0 embed5:{x:0}}} embed2:0xc420095dd0 Anonymous:15}
want
{Exported:1 unexported:0 Shadow:3 embed1:{Em1:4 Dup:5 Shadow:0 embed3:{Em3:7 embed5:{x:0}}} embed2: Anonymous:15}
FAIL
exit status 1
FAIL cloud.google.com/go/internal/fields 0.041s
The text was updated successfully, but these errors were encountered: