Clojure

spit works only on strings

Details

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

Description

As reported by Kevin Downey (http://groups.google.com/group/clojure-dev/browse_thread/thread/36e1fa06d91e1ee1):

user=> (spit "/tmp/foo" {:a 1})
java.lang.IllegalArgumentException: No matching method found: write
for class java.io.BufferedWriter
(NO_SOURCE_FILE:0)
user=>

This happens because the argument to spit isn't converted to a string before calling BufferedWriter.write

Activity

Hide
Assembla Importer added a comment -

tomfaulhaber said: [file:deEMXaFdKr35cIeJe5cbLr]: A patch that converts arg to string (and adds some doc)

Show
Assembla Importer added a comment - tomfaulhaber said: [file:deEMXaFdKr35cIeJe5cbLr]: A patch that converts arg to string (and adds some doc)
Hide
Assembla Importer added a comment -

stu said: Updating tickets (#381, #386, #388, #391, #377)

Show
Assembla Importer added a comment - stu said: Updating tickets (#381, #386, #388, #391, #377)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: