Clojure

GC Issue 42: Classes from :methods argument vectors are not resolved before passing to overload-names (+ patch (?))

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Reported by m...@kotka.de, Jan 10, 2009
What (small set of) steps will reproduce the problem?

Try to compile the following namespace definition:

(ns foo.Bar
  (:gen-class
     :methods [[toString [Object] String]]))

What is the expected output? What do you see instead?

I expect this to compile normally, but the following exception is thrown:

1:1 user=> (binding [*compile-path* "tmp"] (compile 'foo.Bar))
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: 
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: 
java.lang.RuntimeException: java.lang.IllegalArgumentException: No matching field found: 
getSimpleName for class clojure.lang.Symbol (Bar.clj:1)

What version are you using?

SVN rev. 1195

Was this discussed on the group? If so, please provide a link to the discussion:

The issue was brought up by baggins on #clojure:
http://clojure-log.n01se.net/date/2009-01-10.html#07:54

Please provide any additional information below.

Attached is a patch, which fixes the symptom. But I'm not sure, whether it fixes the issue.
 issue-42.diff
851 bytes Download
Comment 1 by richhickey, Jan 14, 2009
Path applied - svn 1210 - thanks!
Status: Fixed

People

  • Assignee:
    Unassigned
    Reporter:
    Anonymous
Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: