go/src/reflect
Matthew Dempsky 6f1724ff41 reflect: fix method indexing for non-ASCII exported methods
Currently, methods are sorted by name. This happens to guarantee that
exported ASCII methods appear before non-exported ASCII methods, but
this breaks down when Unicode method names are considered.

Type.Method already accounts for this by always indexing into the
slice returned by exportedMethods. This CL makes Value.Method do the
same.

Fixes #22073.

Change-Id: I9bfc6bbfb7353e0bd3c439a15d1c3da60d16d209
Reviewed-on: https://go-review.googlesource.com/66770
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2017-09-28 18:06:53 +00:00
..
all_test.go reflect: fix method indexing for non-ASCII exported methods 2017-09-28 18:06:53 +00:00
asm_386.s
asm_amd64.s
asm_amd64p32.s
asm_arm.s
asm_arm64.s
asm_mips64x.s
asm_mipsx.s
asm_ppc64x.s
asm_s390x.s
deepequal.go reflect: document how DeepEqual handles cycles 2017-08-04 22:22:03 +00:00
example_test.go reflect: add example for StructOf 2016-12-06 20:18:12 +00:00
export_test.go reflect: remove useless parameter from newName 2017-08-16 15:11:03 +00:00
makefunc.go runtime: clean up and improve reflect.methodValue comments 2016-12-19 21:02:53 +00:00
set_test.go reflect: check pkgPath for unexported methods in Implements 2017-06-08 00:54:14 +00:00
swapper.go
tostring_test.go
type.go reflect: add URL scheme for godoc hyperlinking 2017-09-27 18:23:25 +00:00
value.go reflect: fix method indexing for non-ASCII exported methods 2017-09-28 18:06:53 +00:00