File tree 4 files changed +14
-1
lines changed
main/java/com/fasterxml/jackson/core
test/java/com/fasterxml/jackson/core
4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -35,3 +35,7 @@ Steve van Loben Sels
35
35
Shay Banon
36
36
* Reported #145: NPE at BytesToNameCanonicalizer
37
37
(2.4.2)
38
+
39
+ Alex Soto: (lordofthejars@github)
40
+ * Reported #173: An exception is thrown for a valid JsonPointer expression
41
+
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ json-specificity (naming due to historical reasons).
17
17
18
18
#157: ArrayIndexOutOfBoundsException: 200 on numbers with more than 200 digits.
19
19
(reported by Lars P, larsp@github)
20
+ #173: An exception is thrown for a valid JsonPointer expression
21
+ (reported by Alex S)
22
+
20
23
- Fix `JsonGenerator.setFeatureMask()` to better handle dynamic changes.
21
24
22
25
2.4.3 (02-Oct-2014)
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ private final static int _parseIndex(String str) {
190
190
return -1 ;
191
191
}
192
192
for (int i = 0 ; i < len ; ++i ) {
193
- char c = str .charAt (i ++ );
193
+ char c = str .charAt (i );
194
194
if (c > '9' || c < '0' ) {
195
195
return -1 ;
196
196
}
Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ public void testSimplePath() throws Exception
36
36
assertEquals (-1 , ptr .getMatchingIndex ());
37
37
}
38
38
39
+ public void testWonkyNumber173 () throws Exception
40
+ {
41
+ JsonPointer ptr = JsonPointer .compile ("/1e0" );
42
+ assertFalse (ptr .matches ());
43
+ }
44
+
39
45
public void testQuotedPath () throws Exception
40
46
{
41
47
final String INPUT = "/w~1out/til~0de/a~1b" ;
You can’t perform that action at this time.
0 commit comments