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

references to a symbol ending with ? that came from a foreign namespace confuses the compiler inside a :cljc block

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Declined
    • Affects versions: Release 1.7, Release 1.8
    • Fix versions: None
    • Labels:
      None

      Description

      I've found a situation where I'm requiring a om.tempid on a .cljc namespace. The require is
      [om.tempid :as tempid :refer [tempid?]]
      The reference of tempid? on line 24 of bug.cljc generates
      java.lang.IllegalArgumentException: Unable to resolve classname: clojure.core$boolean@7521bffd, compiling/home/geraldo/bug/src/bug/bug.cljc:14:5)

      To circumvent I've created a local alias of the tempid? function (line 26). It seems that the ? at the end of the name is causing the trouble because if I reference om.tempid/tempid it does not trigger. Note that the local alias was ended with ? to show that only when is a foreign ns that the problem is present.

      Regards and forgive my english.

      Geraldo Lopes de Souza

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alex+import import
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: