You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
simple code example
import com.google.protobuf.ByteString;
import com.google.protobuf.Message;
import com.googlecode.protobuf.format.JsonFormat;
import com.viaden.network.yoga.core.api.YogaCoreDomain;
/**
* protobuf message
* <p/>
* {@code message TestObject { required bytes data = 1; }}
*/
public class JacksonTest {
private static final char BELL_CHARACTER = '\u0007';
public static void main(String[] args) throws Exception {
final YogaCoreDomain.TestObject.Builder testObject = YogaCoreDomain.TestObject.newBuilder();
testObject.setData(ByteString.copyFrom(new byte[]{BELL_CHARACTER}));
final Message.Builder builder = YogaCoreDomain.TestObject.getDefaultInstance().newBuilderForType();
final String result = JsonFormat.printToString(builder.mergeFrom(testObject.build()).build());
}
}
What is the expected output? What do you see instead?
expected:
{"data":"\u0007"}
actual
{"data":"\a"}
What version of the product are you using? On what operating system?
1.2
Please provide any additional information below.
Original issue reported on code.google.com by [email protected] on 22 Jan 2013 at 12:23
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 22 Jan 2013 at 12:23The text was updated successfully, but these errors were encountered: