anyone here using play-clj?
i’m adapting an example app that uses brute and play-clj (https://github.com/markmandel/brute-play-pong)
i noticed that if i upgraded the dependencies, some reflective calls fail
the existing app uses Clojure 1.6 and old versions of play-clj & libgdx
upgrading to Clojure 1.8 & latest play-clj and libgdx results in some interop calls failing
unless I type-hint everything
just trying to figure out if it’s a Clojure 1.8 change or somethign
Is it a play-clj problem, or a brute problem?
hey the man himself
no i highly doubt it’s a brute problem
it’s a (.draw font… etc call on BitmapFont
works fine in your example, fails after updating the deps
There isn't much to brute really 😃
i can make it work, but i have to type-hint everything and make the ints explicit floats
Send be a PR with updated deps if you get it working
not sure if it’s because there are more overloads of that method in libgdx 1.9.3 than there were in 1.0.0
Quite possible
Play-clj wrappers may take care of the type conversion
yeah i tried that there’s a (bitmap-font! font :draw ) form you can use
but internally it only type-hints the font
so call still fails
😞
i should probably check if it’s just specific to BitmapFont and it’s many draw() overloads
That seems very likely
yeah, you’re also using ShapeRenderer.rect() that has 5 overloads, and that’s not breaking even though it has no type-hints
From memory, that had different argument counts?
I wrote the code a while ago 😋
yeah i think the arg counts are all different
so maybe it’s the duplicate arities with different types that’s the issue
for BitmapFont
it has 2 4-arity draw() methods, differing only in the type of the 2nd arg
let me try just hint that
nope
have to type hint everything else it fails
even, weirdly, the BitmapFont arg itself, which is explicitly type-hinted inside the (bitmap-font!) macro