Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2739)

Issue 4672056: code review 4672056: gob: register more slice types (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by bpowers
Modified:
12 years, 8 months ago
Reviewers:
CC:
golang-dev, gri, r
Visibility:
Public.

Description

gob: register more slice types Without explicitly registering slice types, gob fails to encode map[string]interface{} instances where the value is a slice, failing with a message such as: gob: type not registered for interface: []string Fixes issue 2065.

Patch Set 1 #

Patch Set 2 : diff -r b8ce149e772b https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 6fe6dae00ad1 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 4 : diff -r 6fe6dae00ad1 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -0 lines) Patch
M src/pkg/gob/encoder_test.go View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
M src/pkg/gob/type.go View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 7
gri
The CL description should say, just so: Fixes issue 2065. Otherwise this looks reasonable to ...
12 years, 9 months ago (2011-07-13 01:41:42 UTC) #1
bpowers
Hello golang-dev@googlegroups.com, gri@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 9 months ago (2011-07-13 05:40:06 UTC) #2
bpowers
Hi folks, I've updated the CL description and expanded the test to test for more ...
12 years, 9 months ago (2011-07-13 05:42:50 UTC) #3
r
http://codereview.appspot.com/4672056/diff/5001/src/pkg/gob/encoder_test.go File src/pkg/gob/encoder_test.go (right): http://codereview.appspot.com/4672056/diff/5001/src/pkg/gob/encoder_test.go#newcode568 src/pkg/gob/encoder_test.go:568: "c1": []complex128{complex(2, float64(-2))}, uintptr and bool here too http://codereview.appspot.com/4672056/diff/5001/src/pkg/gob/type.go ...
12 years, 9 months ago (2011-07-13 06:00:46 UTC) #4
bpowers
Hello golang-dev@googlegroups.com, gri@golang.org, r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 9 months ago (2011-07-13 06:38:13 UTC) #5
r
LGTM
12 years, 9 months ago (2011-07-13 07:11:29 UTC) #6
r
12 years, 9 months ago (2011-07-13 07:12:34 UTC) #7
*** Submitted as http://code.google.com/p/go/source/detail?r=7f39a0541e03 ***

gob: register more slice types

Without explicitly registering slice types, gob fails to encode
map[string]interface{} instances where the value is a slice,
failing with a message such as:

  gob: type not registered for interface: []string

Fixes issue 2065.

R=golang-dev, gri, r
CC=golang-dev
http://codereview.appspot.com/4672056

Committer: Rob Pike <r@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b