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

GC Issue 57: Compiler internal error when expanding macro: class not found

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Declined
    • Affects versions: None
    • Fix versions: Backlog
    • Labels:
      None

      Description

      Reported by tuomas.lukka, Jan 29, 2009
       
      ------------------------------
      
      What (small set of) steps will reproduce the problem?
      
      Run the following code:
      
      (defmacro b [] (let [ x (fn [] []) ] x))
      (def a (fn [] (b)))
      
      
      What is the expected output? What do you see instead?
      
      I'd expect it to either pass or give a proper error. What I get
      is
      
      Exception in thread "main" java.lang.ExceptionInInitializerError (test.clj:2)
       at clojure.lang.Compiler$DefExpr.eval(Compiler.java:308)
       at clojure.lang.Compiler.eval(Compiler.java:4147)
       at clojure.lang.Compiler.load(Compiler.java:4470)
       at clojure.lang.Compiler.loadFile(Compiler.java:4437)
       at clojure.lang.Script.main(Script.java:65)
      Caused by: java.lang.ExceptionInInitializerError
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at
      sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at
      sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
       at java.lang.Class.newInstance0(Class.java:355)
       at java.lang.Class.newInstance(Class.java:308)
       at clojure.lang.Compiler$FnExpr.eval(Compiler.java:3218)
       at clojure.lang.Compiler$DefExpr.eval(Compiler.java:297)
       ... 4 more
      Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException:
      clojure.core$b__1$x__3
       at clojure.lang.RT.readString(RT.java:1192)
       at clojure.core$a__7.<clinit>(test.clj:2)
       ... 12 more
      Caused by: java.lang.ClassNotFoundException: clojure.core$b__1$x__3
       at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       at clojure.lang.DynamicClassLoader.findClass(DynamicClassLoader.java:52)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:247)
       at clojure.lang.RT.classForName(RT.java:1506)
       at clojure.lang.LispReader$EvalReader.invoke(LispReader.java:908)
       at clojure.lang.LispReader$DispatchReader.invoke(LispReader.java:530)
       at clojure.lang.LispReader.read(LispReader.java:143)
       at clojure.lang.RT.readString(RT.java:1188)
       ... 13 more
      
      
      What version are you using?
      
      20081217
      
      Was this discussed on the group? If so, please provide a link to the
      discussion:
      
      no
      
      

        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: