]> Cypherpunks repositories - gostls13.git/commit
reflect: adjust access to unexported embedded structs
authorMarcel van Lohuizen <mpvl@golang.org>
Fri, 28 Aug 2015 07:33:51 +0000 (09:33 +0200)
committerMarcel van Lohuizen <mpvl@golang.org>
Mon, 26 Oct 2015 10:14:38 +0000 (10:14 +0000)
commitadf9b30e55943feb44669ebf773964fd32d4ee94
tree3c939ad5be0d1cfde1777b020db94b633b0bde4f
parentfb7178e7cc219062efe7d5da5df4f85b01b0f8ac
reflect: adjust access to unexported embedded structs

This CL changes reflect to allow access to exported fields and
methods in unexported embedded structs for gccgo and after gc
has been adjusted to disallow access to embedded unexported structs.

Adresses #12367, #7363, #11007, and #7247.

Change-Id: If80536eab35abcd25300d8ddc2d27d5c42d7e78e
Reviewed-on: https://go-review.googlesource.com/14010
Reviewed-by: Russ Cox <rsc@golang.org>
src/reflect/export_test.go
src/reflect/type.go
src/reflect/value.go