[
https://issues.apache.org/jira/browse/STORM-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14739638#comment-14739638
]
Michael Gaare commented on STORM-1042:
--------------------------------------
Some of clj-time works, however. It's specifically only clj-time.local that's
failing. Here's an extended example:
clojure-sandbox.core> (require '[clj-time.core :as tme])
nil
clojure-sandbox.core> (tme/now)
#<DateTime 2015-09-10T21:28:57.878Z>
clojure-sandbox.core> (require '[clj-time.coerce :as tc])
nil
clojure-sandbox.core> (tc/to-date-time (tme/now))
#<DateTime 2015-09-10T21:29:24.358Z>
clojure-sandbox.core> (require '[clj-time.format :as tf])
nil
clojure-sandbox.core> (tf/parse "2015-09-10")
#<DateTime 2015-09-10T00:00:00.000Z>
clojure-sandbox.core> (require '[clj-time.local :as l])
CompilerException java.lang.ClassCastException:
org.apache.storm.joda.time.format.DateTimeFormatter cannot be cast to
org.joda.time.format.DateTimeFormatter, compiling:(local.clj:35:3)
> clj-time.local compilation error
> --------------------------------
>
> Key: STORM-1042
> URL: https://issues.apache.org/jira/browse/STORM-1042
> Project: Apache Storm
> Issue Type: Bug
> Affects Versions: 0.10.0
> Environment: Java 8, Clojure 1.6.0, Storm 0.10.0-beta1
> Reporter: Michael Gaare
> Assignee: Robert Joseph Evans
> Priority: Critical
>
> In a Clojure project with a storm-core 0.10.0-beta1 dependency, attempting to
> compile clj-time.local throws a compiler exception, as follows:
> (require '[clj-time.local :as l])
> CompilerException java.lang.ClassCastException:
> org.apache.storm.joda.time.format.DateTimeFormatter cannot be cast to
> org.joda.time.format.DateTimeFormatter, compiling:(local.clj:35:3)
> Same error happens if the project is using clj-time brought in with
> storm-core, and with an explicit dep of clj-time.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)