Uploaded image for project: 'Clojure'
  1. CLJ-1707

conditional form is not consumed when :read-allow is falsey

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: None
    • Fix versions: None
    • Labels:

      Description

      user=> (def a (java.io.PushbackReader. (java.io.StringReader. "#?(:clj [1 2])")))
      #'user/a
      user=> (read a)
      RuntimeException Conditional read not allowed  clojure.lang.Util.runtimeException (Util.java:221)
      user=> (read a)
      (:clj [1 2])
      

      the expected result would be an EOF exception on the second read.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bronsa Nicola Mometto
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: