Skip to content

Commit 0b176a6

Browse files
author
Emile Joubert
committed
Merged bug24634 into default
2 parents 983131c + 992b126 commit 0b176a6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

codegen.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,12 @@ def printWritePropertiesTo(c):
264264
print " if (this.%s != null) writer.write%s(this.%s);" % (jfName, jfClass, jfName)
265265
print " }"
266266

267-
def printAppendArgumentDebugStringTo(c):
267+
def printAppendPropertyDebugStringTo(c):
268268
appendList = [ "%s=\")\n .append(this.%s)\n .append(\""
269269
% (f.name, java_field_name(f.name))
270270
for f in c.fields ]
271271
print
272-
print " public void appendArgumentDebugStringTo(StringBuilder acc) {"
272+
print " public void appendPropertyDebugStringTo(StringBuilder acc) {"
273273
print " acc.append(\"(%s)\");" % (", ".join(appendList))
274274
print " }"
275275

@@ -386,7 +386,7 @@ def printSetter(fieldType, fieldName):
386386
printSetter(jType, jName)
387387

388388
printWritePropertiesTo(c)
389-
printAppendArgumentDebugStringTo(c)
389+
printAppendPropertyDebugStringTo(c)
390390
printPropertiesBuilderClass(c)
391391

392392
print " }"

src/com/rabbitmq/client/impl/AMQCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private static StringBuilder contentBodyStringBuilder(byte[] body, boolean suppr
146146
if (suppressBody) {
147147
return new StringBuilder().append(body.length).append(" bytes of payload");
148148
} else {
149-
return new StringBuilder().append('\"').append(body).append('\"');
149+
return new StringBuilder().append('\"').append(new String(body, "UTF-8")).append('\"');
150150
}
151151
} catch (Exception e) {
152152
return new StringBuilder().append('|').append(body.length).append('|');

0 commit comments

Comments
 (0)