ztellman / automat

better automata through combinators
588 stars 50 forks source link

Using AOT with clojurescript dependency throws ClassCastException #68

Closed tangrammer closed 7 years ago

tangrammer commented 7 years ago

Hi @ztellman just updating this problem in a clean and separate issue

Description

example code

https://github.com/tangrammer/automat-issue

tangrammer commented 7 years ago

I've checked that the problem arises when a namespace that contains references to automat classes is included in AOT directly or indirectly ... Please, could anyone point me where the root of this issue lives so i could ask in the proper place? thanks in advance

cemerick commented 7 years ago

I have the same problem. Investigating now. @tangrammer if you have any further information since your last post, please let us know. 😄

ztellman commented 7 years ago

I'm sorry that I can't be much help here, the whole CLJS ecosystem is a bit of a mystery to me. I'll call @DomKM to this thread, though, since he's to blame for the CLJS portion of this library.

cemerick commented 7 years ago

The result of my proposed fix #69 is available here, if anyone wants to test it themselves in an AOT project that also uses CLJS:

[org.clojars.cemerick/automat "0.2.3-SNAPSHOT"]

tangrammer commented 7 years ago

Hi @cemerick sorry but I don't have more information around this issue. Hope you have more tools to try to fix it!