Hello Group,

I'm working on a Clojure project and I'm using Leiningen for the
builds.  I'm trying to use the most recent clojure and clojure-
contrib, but I'm having a problem getting it to compile due to
apparent errors in clojure.contrib.string.  This works fine on the
more stable versions of these libraries, which use clojure.contrib.str-
utils2.

Here's my project file:
(defproject myproj "0.1"
    :dependencies [[org.clojure/clojure
                      "1.2.0-master-SNAPSHOT"]
                   [org.clojure/clojure-contrib
                      "1.2.0-SNAPSHOT"]]
    :main myproj)

And I'm later using clojure.contrib.string as such:
(ns myproj
  (:gen-class)
  (:require [clojure.contrib.string :as str-utils :only (join)])
  (:import (java.io File FileNotFoundException BufferedReader
InputStreamReader OutputStreamWriter)))

I'm then using the str-utils/join function in the code, but I can't
get it to compile.  I get the following Java exceptions when doing
"lein compile":

java.lang.RuntimeException: java.lang.IllegalArgumentException: Unable
to resolve classname: Replacement
<snip>
at clojure.main.main(main.java:37)
Caused by: java.lang.IllegalArgumentException: Unable to resolve
classname: Replacement
        at clojure.lang.Compiler$HostExpr.tagToClass(Compiler.java:893)

I also get this a couple of times:
[null] java.lang.VerifyError: (class: clojure/contrib/string
$replace_first_re__81, method: invoke signature: (Ljava/lang/
Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;) Unable
to pop operand off an empty stack
<snip>
at clojure.main.main(main.java:37)
     [null] Caused by: java.lang.VerifyError: (class: clojure/contrib/
string$replace_first_re__81, method: invoke signature: (Ljava/lang/
Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;) Unable
to pop operand off an empty stack

Any ideas here?  Not a big deal as I can just use the older code.

Thanks,

Matt


-- 
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

Reply via email to