shellac has quit [Quit: Computer has gone to sleep.]
rusk has joined #jruby
whitingjr has quit [Ping timeout: 246 seconds]
whitingjr has joined #jruby
kiwi_80 has joined #jruby
kiwi_80 has quit [Remote host closed the connection]
drbobbeaty has joined #jruby
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whitingjr has quit [Ping timeout: 245 seconds]
whitingjr has joined #jruby
sagax has joined #jruby
shellac has joined #jruby
whitingjr has quit [Ping timeout: 248 seconds]
whitingjr has joined #jruby
drbobbeaty has joined #jruby
whitingjr has quit [Ping timeout: 245 seconds]
<rdubya[m]>
Has anybody seen an issue with jruby 9.1.17.0 where it won't allow you to call private methods that are defined in a parent class from a child class?
<rdubya[m]>
I have code that we've been running in production for months that suddenly decided it wasn't going to let me call it that way anymore
<rdubya[m]>
one of the other devs had it happen in another place as well, in an area where we've been doing similar things for years
<headius[m]>
9.1.17, could be
<headius[m]>
Especially if prepend or refinements are involved
<headius[m]>
I don't know why it would start happening suddenly though
<rdubya[m]>
neither of those apply in this case
<headius[m]>
Not super calls to Java superclass private methods right?
<rdubya[m]>
and I can't replicate it
<rdubya[m]>
with test code, its only happening in these 2 specific places afaik
<rdubya[m]>
no, java shouldn't be getting involved here
<headius[m]>
Hmm
<rdubya[m]>
i'll create a gist so you can see the code
<rdubya[m]>
if I change it to self.with_connection it complains that I'm calling a private method, if I don't have the `self.` part on there it just complains that the method doesn't exist
<headius[m]>
On mobile on airplane
<rdubya[m]>
oh lol
<headius[m]>
Pretty straightforward code
<headius[m]>
Could an instance have been made into a Singleton or something? Some code extends into it maybe?
<rdubya[m]>
Shouldn't be
whitingjr has joined #jruby
<rdubya[m]>
the line calling into it is: `Services::Cloudflare::Hostname.new(name).ensure_existence_and_correctness`
<headius[m]>
Hmm
<headius[m]>
I see nothing obvious here
<headius[m]>
Got a copy of the error?
<rdubya[m]>
if I change it to protected instead of private it works
<rdubya[m]>
let me get a copy of it, it doesn't have much info unfortunately
<rdubya[m]>
bleh
<rdubya[m]>
I changed it to protected and restarted and it worked
<rdubya[m]>
then changed it back to private and restarted and it worked 😕
<rdubya[m]>
headius: guess I'll just keep an eye out for it and try to dig into it more if it happens again, thanks for looking into it
<headius[m]>
I suspect something somewhere is monkeying with the hierarchy in was you aren't aware of
<rdubya[m]>
the other place we had it happen was in a controller that extended ApplicationController
<headius[m]>
I am definitely curious
<rdubya[m]>
and its only certain methods lol, other private methods can still be called fine ☹️
shellac has quit [Quit: Computer has gone to sleep.]
lucasb has joined #jruby
<headius[m]>
Hmm
<headius[m]>
JIT
<headius[m]>
Would explain it working at first and not later
<headius[m]>
Try setting threshold 0
<rdubya[m]>
at this point I can't get it to fail anymore
<headius[m]>
-Xjit.threshold=0
<headius[m]>
Only hunch I have now other than some runtime class hierarchy nonsense
<rdubya[m]>
love the hard to find ones lol, we'll hopefully be getting everything into 9.2 soon, so hopefully that won't have the same issue
whitingjr has quit [Quit: Leaving.]
whitingjr has joined #jruby
whitingjr has left #jruby [#jruby]
<enebo[m]>
This sounds like maybe visibility changes somehow when it is JITd?
<kares[m]>
rdubya what kind of app do you have, I recall you're using SQServer on Rails but anything you can share (always interested :) ?
<rdubya[m]>
its a rails app, the primary datastore is postgres but we have legacy data in SQLServer and we also store some stuff in MongoDb
<rdubya[m]>
the core functionality is a content management system for schools
<kares[m]>
nice a custom (in house built) Rails cms or has it been based on something existing?
rusk has quit [Read error: Connection reset by peer]
rusk has joined #jruby
<headius[m]>
enebo I'm thinking slightly different logic for the vis check in jit vs interp
<headius[m]>
It would explain it being intermittent
<enebo[m]>
headius: yeah it could just be different logic with same value too
whitingjr has joined #jruby
shellac has joined #jruby
<rdubya[m]>
kares: It was built from the ground up, its a rewrite of our legacy coldfusion based cms
<rdubya[m]>
that's why we're still stuck with mssql holding some of the data lol
<headius[m]>
Good old cold fusion
rusk has quit [Ping timeout: 245 seconds]
rusk has joined #jruby
xardion has quit [Remote host closed the connection]
shellac has quit [Ping timeout: 250 seconds]
rusk has quit [Remote host closed the connection]
xardion has joined #jruby
fidothe has quit [Ping timeout: 276 seconds]
fidothe has joined #jruby
fidothe has quit [Ping timeout: 245 seconds]
fidothe has joined #jruby
subbu is now known as subbu|lunch
shellac has joined #jruby
alex_ezz has joined #jruby
<alex_ezz>
Hello, can somebody help me with jruby IO question?