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

Issue 5486076: code review 5486076: fmt: don't recur if String method (etc.) misbehaves (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by r
Modified:
12 years, 5 months ago
Reviewers:
CC:
golang-dev, dsymonds, r2
Visibility:
Public.

Description

fmt: don't recur if String method (etc.) misbehaves Fixes issue 2555.

Patch Set 1 #

Total comments: 1

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

Patch Set 3 : diff -r 295ed44ba15b https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -0 lines) Patch
M src/pkg/fmt/fmt_test.go View 1 1 chunk +34 lines, -0 lines 0 comments Download
M src/pkg/fmt/print.go View 5 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 8
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 5 months ago (2011-12-14 23:07:11 UTC) #1
dsymonds
http://codereview.appspot.com/5486076/diff/1/src/pkg/fmt/fmt_test.go File src/pkg/fmt/fmt_test.go (right): http://codereview.appspot.com/5486076/diff/1/src/pkg/fmt/fmt_test.go#newcode830 src/pkg/fmt/fmt_test.go:830: return Sprintf("recur@%p value: %d", r, r.i) am I missing ...
12 years, 5 months ago (2011-12-14 23:50:14 UTC) #2
r2
On Dec 14, 2011, at 3:50 PM, dsymonds@golang.org wrote: > > http://codereview.appspot.com/5486076/diff/1/src/pkg/fmt/fmt_test.go > File src/pkg/fmt/fmt_test.go ...
12 years, 5 months ago (2011-12-15 00:04:45 UTC) #3
r2
P.S. A test failure before the fix generated: recur@%!p(fmt_test.Recur=recur@%!p(fmt_test.Recur=recur@%!p(fmt_test.Recur=recur@%!p(fmt_test.Recur=recur@%!p(fmt_test.Recur=recur@%!p(fmt_test.Recur=recur@%!p(fmt_test.Recur=recur@%!p(fmt_test.Recur=recur@%!p(fmt_test.Recur=recur@%!p(fmt_test.Recur=recur@%!p(fmt_test.Recur=%v(PANIC=call stack too large)) value: 3) value: ...
12 years, 5 months ago (2011-12-15 00:09:52 UTC) #4
dsymonds
LGTM On Thu, Dec 15, 2011 at 11:04 AM, Rob 'Commander' Pike <r@google.com> wrote: > ...
12 years, 5 months ago (2011-12-15 00:26:00 UTC) #5
r
Hello golang-dev@googlegroups.com, dsymonds@golang.org, r@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 5 months ago (2011-12-15 00:32:42 UTC) #6
dsymonds
LGTM
12 years, 5 months ago (2011-12-15 00:35:50 UTC) #7
r
12 years, 5 months ago (2011-12-15 00:37:58 UTC) #8
*** Submitted as http://code.google.com/p/go/source/detail?r=f656b151c693 ***

fmt: don't recur if String method (etc.) misbehaves

Fixes issue 2555.

R=golang-dev, dsymonds, r
CC=golang-dev
http://codereview.appspot.com/5486076
Sign in to reply to this message.

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