From 58373fa160368d825255b0103235b1b769520f14 Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Mon, 3 Apr 2017 17:35:42 +0900 Subject: [PATCH] Fix error message for int64 parse error. --- .../util/src/main/java/com/google/protobuf/util/JsonFormat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java b/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java index 838700f7f6..7d6718b84a 100644 --- a/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java +++ b/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java @@ -1536,7 +1536,7 @@ public class JsonFormat { BigDecimal value = new BigDecimal(json.getAsString()); return value.longValueExact(); } catch (Exception e) { - throw new InvalidProtocolBufferException("Not an int32 value: " + json); + throw new InvalidProtocolBufferException("Not an int64 value: " + json); } }