In September I was trying out the Java interop support of Clojure by
converting this:

http://www.dcm4che.org/confluence/display/d2/Accessing+dcm4che2+Toolkit+with+Jruby

to Clojure.

I was using the 20080612 release and got an exception like this:

Exception in thread "main" java.lang.IllegalArgumentException: No
matching method found: getString for class
org.dcm4che2.data.BasicDicomObject (dinfo.clj:0)

rhickey pointed out that there was a 20080916 version available, so I
tried that and the problem went away.

Yesterday I tried running the code again using r1109 of Clojure and
got the same exception again!  Here's what it looks like with r1110:

Exception in thread "main" java.lang.IllegalArgumentException: No
matching method found: getString for class
org.dcm4che2.data.BasicDicomObject (dinfo.clj:0)
        at clojure.lang.Compiler.eval(Compiler.java:4111)
        at clojure.lang.Compiler.load(Compiler.java:4427)
        at clojure.lang.Compiler.loadFile(Compiler.java:4394)
        at clojure.lang.Script.main(Script.java:65)
Caused by: java.lang.IllegalArgumentException: No matching method
found: getString for class org.dcm4che2.data.BasicDicomObject
        at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:48)
        at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)
        at clojure.core$print_tag__8.invoke(dinfo.clj:18)
        at clojure.core$eval__11.invoke(dinfo.clj:21)
        at clojure.lang.Compiler.eval(Compiler.java:4100)
        ... 3 more

The code is here:
http://paste.lisp.org/display/70670

The Javadoc for BasicDicomObject is here:
http://www.dcm4che.org/docs/dcm4che2-apidocs/org/dcm4che2/data/BasicDicomObject.html

I bisected this down to r1047 and r1048.  i.e.:
1029 works
1039 works
1044 works
1046 works
1047 doesn't work
1049 doesn't work
1069 doesn't work
1109 doesn't work

If I revert those two revisions then the problem goes away again.
i.e. the following fixes it:
svn up -r1110; svn diff -r1046:1048 | patch -p0 -R

Chouser said, "Wodin: looks like you're going to have to take it up
with rhickey_. The method you want isBridge (whatever that means), but
the class is not StringBuilder, thus Clojure's not letting you get to
that method. "

-- 
Michael Wood <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to