Skip to content

Commit

Permalink
DJSON-56 - in nextToken let invalid char < 32 flow out to specific pa…
Browse files Browse the repository at this point in the history
…rsers for better errors
  • Loading branch information
puredanger committed Nov 27, 2024
1 parent 60dde60 commit 09d6faf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ Developer Information
Change Log
----------------------------------------

* Next
* Fix: [DJSON-56] During `read`, better error messages for chars < 32
* Release [2.5.1] on 2024-Nov-26
* Fix: `read` of JSON number followed by EOF can break subsequent read on supplier PBR from seeing EOF
* Fix: `read` docstring updated to specify minimum buffer size when PushbackReader supplied (64)
Expand Down Expand Up @@ -251,6 +253,7 @@ Change Log

[DJSON-61]: https://clojure.atlassian.net/browse/DJSON-61
[DJSON-57]: https://clojure.atlassian.net/browse/DJSON-57
[DJSON-56]: https://clojure.atlassian.net/browse/DJSON-56
[DJSON-54]: https://clojure.atlassian.net/browse/DJSON-54
[DJSON-53]: https://clojure.atlassian.net/browse/DJSON-53
[DJSON-52]: https://clojure.atlassian.net/browse/DJSON-52
Expand Down
2 changes: 1 addition & 1 deletion src/main/clojure/clojure/data/json.clj
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@
(int c)
(codepoint-case (int c)
:whitespace (recur (.readChar stream))
-1 -1))))
c))))

(defn invalid-array-exception []
(Exception. "JSON error (invalid array)"))
Expand Down

0 comments on commit 09d6faf

Please sign in to comment.