This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-29
Channels
- # aleph (2)
- # architecture (1)
- # beginners (5)
- # boot (7)
- # cider (24)
- # clara (28)
- # cljs-dev (7)
- # cljsjs (3)
- # cljsrn (24)
- # clojure (145)
- # clojure-italy (2)
- # clojure-nl (7)
- # clojure-uk (54)
- # clojurescript (159)
- # cursive (49)
- # data-science (8)
- # datomic (23)
- # editors (10)
- # emacs (2)
- # fulcro (123)
- # graphql (12)
- # hoplon (2)
- # java (23)
- # jobs (1)
- # jobs-discuss (2)
- # leiningen (17)
- # mount (5)
- # nrepl (5)
- # off-topic (20)
- # om (2)
- # onyx (25)
- # parinfer (2)
- # pedestal (1)
- # re-frame (8)
- # reagent (7)
- # ring-swagger (1)
- # shadow-cljs (24)
- # spacemacs (7)
- # specter (6)
- # tools-deps (7)
- # vim (2)
any java people available to help me get https://gitlab.ow2.org/asm/asm up and running so i can run some tests and make a patch? it's gradle based and I have no idea where to start 🙂
@dpsutton Is this to address the bug I reported?
short
to int
fails
Yeah, promotion is "free". The .cast()
call deals with all the non-int from cases first and then all the to cases -- and throws an exception on no-ops now (where from != to).
(from memory -- I'm watching TV and not looking at the source)
FWIW, when I tested Clojure and my patch, I ran all the tests first (there was a failure, unrelated), then I added my fix and made sure it didn't break anything, then I added my tests and made sure those past, then I removed my fix and made sure the extra tests failed, then put my fix back (and re-tested).
casts from long/double/float (and maybe others) to int all work -- those are handled just fine by the ASM code.
It's only short->int and byte->int as far as I can tell.
Good stuff @dpsutton!
Alex indicated there would be no fix applied to Clojure for a few weeks due to other commitments so I may well build a variant of Alpha 5 with my fix and run a bunch of tests against the World Singles code base...
Reverting the ASM update doesn't seem like a solution to me.
Either apply my patch, or update the local re-vendored copy of GeneratorAdapter.