Skip to content

coerce cannot cast object to primitive types.#1

Open
hozumi wants to merge 1 commit intostuarthalloway:masterfrom
hozumi:master
Open

coerce cannot cast object to primitive types.#1
hozumi wants to merge 1 commit intostuarthalloway:masterfrom
hozumi:master

Conversation

@hozumi
Copy link
Copy Markdown

@hozumi hozumi commented Nov 30, 2010

Hi,
:default method of coerce has a problem about casting primitive types.

$ wget http://media.pragprog.com/titles/shcloj/code/shcloj-code.tgz
$ tar xzf shcloj-code.tgz
$ cd code
$ bin/repl.sh
Clojure 1.1.0-alpha-SNAPSHOT
user=> (use 'lancet.step-5-complete)
nil
user=> (def sleep (instantiate-task ant-project "sleep" {:seconds 2}))
java.lang.ClassCastException (NO_SOURCE_FILE:2)

I've fixed this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant