Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Slamhound throws exception on static methods #4

Closed
dakrone opened this Issue Apr 27, 2011 · 2 comments

Comments

Projects
None yet
3 participants

dakrone commented Apr 27, 2011

things like:

(Dictionary/parseOneEntryPerLine (reader in))

throw exceptions complaining about "parseOneEntryPerLine"

full stacktrace (for a static method called create):

Exception in thread "main" java.lang.IllegalArgumentException: No matching method: create (NO_SOURCE_FILE:1)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:5376)
        at clojure.lang.Compiler.analyze(Compiler.java:5190)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:5357)
        at clojure.lang.Compiler.analyze(Compiler.java:5190)
        at clojure.lang.Compiler.access$100(Compiler.java:35)
        at clojure.lang.Compiler$LetExpr$Parser.parse(Compiler.java:4921)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:5369)
        at clojure.lang.Compiler.analyze(Compiler.java:5190)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:5357)
        at clojure.lang.Compiler.analyze(Compiler.java:5190)
        at clojure.lang.Compiler.analyze(Compiler.java:5151)
        at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:4670)
        at clojure.lang.Compiler$FnMethod.parse(Compiler.java:4328)
        at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3173)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:5367)
        at clojure.lang.Compiler.analyze(Compiler.java:5190)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:5357)
        at clojure.lang.Compiler.analyze(Compiler.java:5190)
        at clojure.lang.Compiler.analyze(Compiler.java:5151)
        at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:4670)
        at clojure.lang.Compiler$FnMethod.parse(Compiler.java:4328)
        at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3173)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:5367)
        at clojure.lang.Compiler.analyze(Compiler.java:5190)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:5357)
        at clojure.lang.Compiler.analyze(Compiler.java:5190)
        at clojure.lang.Compiler.analyze(Compiler.java:5151)
        at clojure.lang.Compiler$HostExpr$Parser.parse(Compiler.java:830)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:5369)
        at clojure.lang.Compiler.analyze(Compiler.java:5190)
        at clojure.lang.Compiler.analyze(Compiler.java:5151)
        at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:4670)
        at clojure.lang.Compiler$FnMethod.parse(Compiler.java:4328)
        at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3173)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:5367)
        at clojure.lang.Compiler.analyze(Compiler.java:5190)
        at clojure.lang.Compiler.eval(Compiler.java:5421)
        at clojure.lang.Compiler.eval(Compiler.java:5414)
        at clojure.lang.Compiler.eval(Compiler.java:5391)
        at clojure.core$eval.invoke(core.clj:2382)
        at slam.hound.regrow$check_for_failure.invoke(regrow.clj:31)
        at slam.hound.regrow$regrow.invoke(regrow.clj:81)
        at slam.hound.regrow$regrow.invoke(regrow.clj:79)
        at slam.hound$reconstruct.invoke(hound.clj:10)
        at user$eval437.invoke(NO_SOURCE_FILE:1)
        at clojure.lang.Compiler.eval(Compiler.java:5424)
        at clojure.lang.Compiler.eval(Compiler.java:5415)
        at clojure.lang.Compiler.eval(Compiler.java:5415)
        at clojure.lang.Compiler.eval(Compiler.java:5391)
        at clojure.core$eval.invoke(core.clj:2382)
        at clojure.main$eval_opt.invoke(main.clj:235)
        at clojure.main$initialize.invoke(main.clj:254)
        at clojure.main$null_opt.invoke(main.clj:279)
        at clojure.main$main.doInvoke(main.clj:354)
        at clojure.lang.RestFn.invoke(RestFn.java:421)
        at clojure.lang.Var.invoke(Var.java:369)
        at clojure.lang.AFn.applyToHelper(AFn.java:163)
        at clojure.lang.Var.applyTo(Var.java:482)
        at clojure.main.main(main.java:37)
Caused by: java.lang.IllegalArgumentException: No matching method: create
        at clojure.lang.Compiler$StaticMethodExpr.<init>(Compiler.java:1349)
        at clojure.lang.Compiler$HostExpr$Parser.parse(Compiler.java:832)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:5369)
        ... 58 more
Owner

technomancy commented Apr 27, 2011

This is probably a disambiguation problem.

@technomancy technomancy pushed a commit that referenced this issue Dec 24, 2012

Alex Baranosky [Issue #4] now finds aliased vars nested in maps and sets fae8b48
Collaborator

guns commented Sep 14, 2013

Confirmed fixed.

@guns guns closed this Sep 14, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment