jensnockert has quit [Read error: Connection reset by peer]
<enebo>
both MRI and JRuby both call initialize_dup on a merge but semantically is calling basicobject version of this needed?
camlow32_ has joined #jruby
camlow325 has quit [Ping timeout: 244 seconds]
blaxter has quit [Quit: foo]
jensnockert has joined #jruby
pawnbox has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
shellac has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
bb010g has quit [Quit: Connection closed for inactivity]
byteit101 has joined #jruby
<GitHub0>
[jruby-openssl] mkristian opened issue #68: OpenSSL::X509::Store behaves differently on MRI http://git.io/vZBmz
<byteit101>
enebo: hey, so while I was trying to improve the fxmlloader, I stumbled across an issue trying to get the new one to work with the fx:root construct, where the controller and the root fxml element are the same. Is it possible to have a instance java class?
drbobbeaty has quit [Read error: Connection reset by peer]
<byteit101>
enebo: namely, given an already constructed object, can I add missing methods to just that object, then "become_java!" just that object such that .java_class will return a valid java class with the methods I just added?
drbobbeaty has joined #jruby
<byteit101>
all the ways i've tried so far don't seem to do that correctly
<byteit101>
enebo: is that even supported?
<enebo>
byteit101: I am thinking about this
elia has quit [Quit: Computer has gone to sleep.]
jensnockert has joined #jruby
<enebo>
the already constructed bit is the odd part
<byteit101>
enebo: yea, I don't want to break the api too much
<enebo>
byteit101: I wonder if the proxy class can get dup’d and set for that instance
<enebo>
byteit101: but you want a single instance to be able to override the ruby impls of a java method but only have it work for that single instance so any other instances of the same type still use the originals
<byteit101>
ideally
<byteit101>
well, no overrides, only if !respond_to? do we define the methods
<byteit101>
because java is strict and expects the methods to exist when it parses the fxml
<byteit101>
so I go through and add stubs for the ones that dont exist
<enebo>
is fxmlloader calling setRoot?
<byteit101>
the user is
<enebo>
and you want that instance to have this added behavior
<enebo>
have you tried just using a ruby singleton on that?
<byteit101>
and my new wrapper (simple proxy) is intercepting that, adding undefined methods, and then passing that to java's fxmlloader
<enebo>
class << my_root; …
jensnockert has quit [Read error: Connection reset by peer]
<enebo>
seems like it should work because it will add a singleton in front of the proxy for that instance
jensnockert has joined #jruby
<enebo>
so you will not override the methods on the type but only that once instance
<byteit101>
NoMethodError: undefined method `become_java!' for #<A:0x68ceda24>
havenwood has quit [Ping timeout: 244 seconds]
<enebo>
byteit101: oh does it have to use become_java!?
bb010g has joined #jruby
<enebo>
oh because this is passed to java and you are constructing the type
<byteit101>
enebo: I need it such that when java calls obj.getClass().getMethod("singleton_method_name") it actually gets the method
<byteit101>
yes
<enebo>
byteit101: yeah because it internally is using java reflection
<enebo>
I see
<byteit101>
yea, this is where I keep getting stuck...
jensnockert has quit [Read error: Connection reset by peer]
<enebo>
byteit101: I guess worse case you can make a single aggregating hacked singleton class
pawnbox has quit [Remote host closed the connection]
<enebo>
where that delegates through to original instance but is a full type so you can become_java! it
jensnockert has joined #jruby
<byteit101>
that is what I was doing for the non fx:root classes.
<byteit101>
but it doesn't work for fx:root
<byteit101>
because then you can't as easily reference "self" which is no longer a ui widget
<byteit101>
have to stuff it somewhere
dinfuehr has joined #jruby
<byteit101>
which breaks the API from java
jensnockert has quit [Read error: Connection reset by peer]
dinfuehr has quit [Remote host closed the connection]
jensnockert has joined #jruby
dinfuehr has joined #jruby
<byteit101>
though we could add a extra class method to "add undefined things" and have the class fixed before you instantiate it
<enebo>
byteit101: yeah I am not sure how to cope with this. you want same instance to change type behavior for only one instance almost like a smalltalk become sort of thing
dinfuehr has quit [Ping timeout: 260 seconds]
<byteit101>
well, not quite. Different instances of the same class to have differt backing jvm classes (like prepend ish)
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
<enebo>
lunch
CustosL1men has quit [Ping timeout: 256 seconds]
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
camlow32_ has quit [Remote host closed the connection]
camlow325 has joined #jruby
jensnockert has joined #jruby
lance|afk is now known as lanceball
camlow325 has quit [Remote host closed the connection]
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
skade has joined #jruby
camlow325 has joined #jruby
samphippen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camlow325 has quit [Remote host closed the connection]
camlow325 has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
havenwood has joined #jruby
jensnockert has joined #jruby
camlow325 has quit [Remote host closed the connection]
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
havenwood has quit [Ping timeout: 252 seconds]
phrinx has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
camlow325 has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
camlow325 has quit [Remote host closed the connection]
jensnockert has joined #jruby
camlow325 has joined #jruby
camlow325 has quit [Read error: Connection reset by peer]
camlow325 has joined #jruby
camlow325 has quit [Remote host closed the connection]
camlow325 has joined #jruby
<lopex>
hmm, Open3::popen3("ls >> foo"){|stdin, stdout, stderr, wait_thread|} doesnt create foo for me on jruby (that's popen3 with block)
<GitHub191>
[jruby] enebo pushed 1 new commit to master: http://git.io/vZBQq
jensnockert has quit [Read error: Connection reset by peer]
<GitHub191>
jruby/master 11fad6e Thomas E. Enebo: Eliminate static field for interpreter instance
jensnockert has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
<GitHub193>
[jruby] pitr-ch pushed 1 new commit to master: http://git.io/vZBdk
<GitHub193>
jruby/master 9ad3caa Petr Chalupa: [Truffle] fix Range#map when composed of ints...
havenwood has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
tcrawley-away is now known as tcrawley
jensnockert has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
temporal_ has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
temporalfox has quit [Ping timeout: 250 seconds]
jensnockert has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
subbu has quit [Ping timeout: 252 seconds]
erikhatcher has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
<tcrawley>
what's the proper way to refer to a java inner interface when implementing it from JRuby? org.foo.IFace1$Iface2 is what I'm trying to implement
<tcrawley>
is class Foo; include Java::OrgFoo::IFace1::IFace2; end the proper way to do that?
jensnockert has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
rsim has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
rsim1 has joined #jruby
rsim has quit [Ping timeout: 248 seconds]
<headius>
tcrawley: that should do it I believe
<headius>
does that not work?
jensnockert has joined #jruby
<tcrawley>
I don't know yet, I haven't yet executed the code in question :)
<tcrawley>
thanks!
<headius>
ok!
<headius>
let me know if you have any issues
skade has quit [Quit: Computer has gone to sleep.]
<tcrawley>
I've spent too long in clojure land, and have forgotten so much about ruby
enebo has quit [Quit: enebo]
jensnockert has quit [Read error: Connection reset by peer]
oblutak has joined #jruby
jensnockert has joined #jruby
subbu has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
erikhatcher has quit [Quit: erikhatcher]
jensnockert has quit [Read error: Connection reset by peer]
jensnock_ has joined #jruby
jensnock_ has quit [Read error: Connection reset by peer]
<subbu>
headius, tom got in just now. and i'll be here all aft. in case you didn't see my response.
sdogruyol has joined #jruby
<GitHub36>
[jruby] pitr-ch pushed 2 new commits to master: http://git.io/vZR8Z
<GitHub36>
jruby/master f9d8ad8 Petr Chalupa: [Truffle] ObjectSpace.each_object correct filtering...
<GitHub36>
jruby/master 8b68a14 Petr Chalupa: [Truffle] code formatting
tcrawley is now known as tcrawley-away
bb010g has quit [Quit: Connection closed for inactivity]
jensnockert has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
havenwood has quit [Ping timeout: 256 seconds]
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
sdogruyol has quit [Quit: Leaving...]
jensnockert has quit [Read error: Connection reset by peer]
jensnockert has joined #jruby
jensnockert has quit [Read error: Connection reset by peer]
<GitHub138>
[jruby] kares created test-findbugs-2 (+26 new commits): http://git.io/vZR2O