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?
1. test.proto
message TestItem{
required string name = 1;
}
2. Java code
Testproto.TestItem.Builder itemBuilder = Testproto.TestItem.newBuilder();
itemBuilder.setName("name with spaces");
String itemTxt = XmlFormat.printToString(itemBuilder.build());
itemBuilder = Testproto.TestItem.newBuilder();
XmlFormat.merge(itemTxt, itemBuilder);
System.out.println("success");
What is the expected output?
success
What do you see instead?
com.google.protobuf.XmlFormat$ParseException: 1:27: Expected ">".
What version of the product are you using? On what operating system?
protobuf 2.2.0
protobuf-java-format 1.1
OS: win32
Please provide any additional information below.
Tokenizer works not correctly.
Way of fix in attached patch.
Original issue reported on code.google.com by Vitaly.R...@gmail.com on 18 Dec 2009 at 8:55
Original issue reported on code.google.com by
Vitaly.R...@gmail.com
on 18 Dec 2009 at 8:55Attachments:
The text was updated successfully, but these errors were encountered: