<puritylake[m]>
Also enebo I’ll try work on the other format specifiers in sprintf, whatever ones are left
subbu has joined #jruby
FarazYashar[m] has joined #jruby
<FarazYashar[m]>
Hi all, I have a question regarding jar compatibility with JVM updates
<FarazYashar[m]>
I have an extension that was built with 9.2.7 with 1.6 as a target
<FarazYashar[m]>
After upgrading to the latest JVM, it no longer works even though no 1.7+ features were used
<FarazYashar[m]>
Is there rule of thumb to tell when JARs built with older JDK versions are no longer forward compatible?
<FarazYashar[m]>
* Is there some rule of
<puritylake[m]>
No idea why any PR I make so many CI’s fail but headius’ seem to run fine
<headius>
👨🎤
<puritylake[m]>
Hmm I think I’m just blind and missing failing tests lol
<headius>
Faraz Yashar: it complains about the bytecode version?
<puritylake[m]>
Gonna be fixing those problems later, so much to do today
<puritylake[m]>
Also been attempting to contribute to CPython, got one PR merged, two more to go
<puritylake[m]>
Next is CRuby
subbu has quit [Ping timeout: 240 seconds]
subbu has joined #jruby
<FarazYashar[m]>
<headius> "Faraz Yashar: it complains about..." <- @headius So I have a gem I built an extension for with 1.6 as source/target when running Jruby 1.7 a loooong time ago. Requiring that JAR in 9.2 doesn't seem to work: I don't see any error, just that the module function I expect to be exposed isn't. Recompiling with 1.8 as a source/target fixed that issue... but now I'm having issues with 9.3.
<headius>
Yeah the bytecode version issue can't be avoided, they have started to drop old releases
<headius>
What issues are you having with 9.3?
<FarazYashar[m]>
The exact same thing
<FarazYashar[m]>
But even rebuilding with higher source/target doesn't make a difference
<enebo[m]>
headius: did we change/remove how we load extensions at all for 9.3?
<enebo[m]>
Like the magic load from top of jar file thing
<headius>
fny: it still says unsupported bytecode version?
<FarazYashar[m]>
It never says anything
<FarazYashar[m]>
Even from 1.7 to 9.2 it silently fails
<FarazYashar[m]>
I just see NoMethodError: undefined method `xor!' for Xorcist:Module
<FarazYashar[m]>
Okay so... I still can't get this to work locally, which is crazy
<ahorek[m]>
yeah, it looks like the jar library isn't loaded for some reason...
<FarazYashar[m]>
Oh wait you did more
<ahorek[m]>
or you're testing something else :)
<ahorek[m]>
btw I've changed BasicLibraryService to Library which is preferable I think, both should work basically the same way, but you have to load the library explicitly via load_ext
<puritylake[m]>
Ok on further inspection of the failing checks some seem to not be related to my code changes
<puritylake[m]>
Mainly build failures by the looks of things
<puritylake[m]>
Ok I've found a problem with array.sort!
<puritylake[m]>
Ok I have found a slight problem with Array#sort! and specifically Arrays.sort, the block isn't run the same amount of times as Ruby
<puritylake[m]>
I might try recreate CRuby’s sort implementation
subbu has quit [Quit: Leaving]
drbobbeaty_ has quit [Read error: Connection reset by peer]