]> Cypherpunks repositories - gostls13.git/commit
encoding/json: use reflect.SetBytes when decoding bytes
authorHÃ¥vard Haugen <havard.haugen@gmail.com>
Sun, 25 Oct 2015 21:42:41 +0000 (22:42 +0100)
committerIan Lance Taylor <iant@golang.org>
Sat, 14 Nov 2015 23:41:46 +0000 (23:41 +0000)
commitc60707b14d6be26bf4213114d13070bff00d0b0a
treea7b43a2137844df7fb7dcc9f3151859b8010262b
parent0624fd3f144fdbc2d5dd88a7c407bcc85a75e195
encoding/json: use reflect.SetBytes when decoding bytes

This allows slices of custom types with byte as underlying type to be
decoded, fixing a regression introduced in CL 9371.

Fixes #12921.

Change-Id: I62a715eaeaaa912b6bc599e94f9981a9ba5cb242
Reviewed-on: https://go-review.googlesource.com/16303
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/encoding/json/decode.go
src/encoding/json/decode_test.go