From 1a9cc459750c0152c7d8b34c059a13a6f4b042bd Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Sun, 7 Dec 2014 10:13:42 -0800 Subject: [PATCH] Fix #173 for 2.3.5 --- release-notes/VERSION | 1 + src/main/java/com/fasterxml/jackson/core/JsonPointer.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/release-notes/VERSION b/release-notes/VERSION index ee5ee91ae1..7edc3810b6 100644 --- a/release-notes/VERSION +++ b/release-notes/VERSION @@ -2,6 +2,7 @@ Project: jackson-core Version: 2.3.5 (xx-xxx-2014) #152: Exception for property names longer than 256k +#173: An exception is thrown for a valid JsonPointer expression ------------------------------------------------------------------------ === History: === diff --git a/src/main/java/com/fasterxml/jackson/core/JsonPointer.java b/src/main/java/com/fasterxml/jackson/core/JsonPointer.java index d353b39279..a80223912a 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonPointer.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonPointer.java @@ -190,7 +190,7 @@ private final static int _parseIndex(String str) { return -1; } for (int i = 0; i < len; ++i) { - char c = str.charAt(i++); + char c = str.charAt(i); if (c > '9' || c < '0') { return -1; }