java

dpsutton 2018-06-29T03:10:03.000133Z

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 🙂

seancorfield 2018-06-29T03:32:49.000099Z

@dpsutton Is this to address the bug I reported?

dpsutton 2018-06-29T03:35:21.000116Z

yup!

dpsutton 2018-06-29T03:35:30.000150Z

but i figured out gradlew so I can run tests now

dpsutton 2018-06-29T03:35:42.000157Z

I have 4 years in C# and none in java proper

dpsutton 2018-06-29T03:36:20.000163Z

you said we call byte to short as well, right?

dpsutton 2018-06-29T03:36:29.000084Z

in addition to the byte -> int

seancorfield 2018-06-29T03:37:04.000047Z

short to int fails

dpsutton 2018-06-29T03:38:05.000150Z

ah. is that a no-op? i have no idea about these types in java 🙂

seancorfield 2018-06-29T03:40:16.000109Z

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).

seancorfield 2018-06-29T03:40:30.000145Z

(from memory -- I'm watching TV and not looking at the source)

dpsutton 2018-06-29T03:43:29.000056Z

yeah. I think maybe just getting rid of the exception is the way to go?

seancorfield 2018-06-29T03:44:46.000165Z

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).

seancorfield 2018-06-29T03:45:36.000110Z

casts from long/double/float (and maybe others) to int all work -- those are handled just fine by the ASM code.

seancorfield 2018-06-29T03:45:57.000127Z

It's only short->int and byte->int as far as I can tell.

dpsutton 2018-06-29T03:58:11.000038Z

https://gitlab.ow2.org/asm/asm/issues/317837

👍 2
seancorfield 2018-06-29T04:14:17.000002Z

Good stuff @dpsutton!

seancorfield 2018-06-29T04:17:28.000146Z

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...

dpsutton 2018-06-29T04:21:46.000141Z

they should just revert the asm update until its resolved i guess

dpsutton 2018-06-29T04:22:17.000132Z

but i have no idea what the implications of that dependency is, how old, etc

dpsutton 2018-06-29T04:22:42.000112Z

and wow. i forgot what its like to code in C#/java. I don't miss it lol

seancorfield 2018-06-29T05:59:26.000163Z

Reverting the ASM update doesn't seem like a solution to me.

seancorfield 2018-06-29T05:59:55.000063Z

Either apply my patch, or update the local re-vendored copy of GeneratorAdapter.