I currently have a static method in Java. I have rewritten it in Clojure. I wish to allow the rest of the Java app to call the new function with minimal change. Still getting "NumberValidator cannot be resolved" even after reading the following SO post and it's not helping for my particular situation.
http://stackoverflow.com/questions/2181774/calling-clojure-from-java Any help is greatly appreciated. Current Java implementation === package com.company.bank; class NumberValidator { public static boolean isValid(String account) { ... } } === What I'd like to not have to change: === package com.company.bank; class App { public run(String account) { ... NumberValidator.isValid(account); ... } } === My new Clojure implementation: === (ns com.company.bank.number-validator (:gen-class :main false :name com.company.bank.NumberValidator :methods [#^{:static true} [isValid [String] boolean])) (defn isValid [account] ...) (defn -isValid [account] (isValid account)) === code has been modified to protect the innocent. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en