<lan5432>
kares_: would toggling debug on reify help me to troubleshoot the problem? If so, how can I do that with irb?
camlow325 has quit []
daicoden_ has joined #jruby
daicode__ has quit [Ping timeout: 244 seconds]
brightball has quit [Quit: Leaving...]
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 252 seconds]
enebo has joined #jruby
enebo has quit [Client Quit]
lan5432 has quit [Quit: Lost terminal]
<GitHub126>
[jruby] ikakara opened issue #3772: .bat files in bin incorrectly use "jruby.bat.exe" instead of "jruby.exe", which causes file not found errors when executing bin commands, from the command line https://git.io/vVn5z
tcrawley-away is now known as tcrawley
benlovell has joined #jruby
benlovell has quit [Ping timeout: 248 seconds]
johnsonch is now known as johnsonch_afk
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 250 seconds]
tcrawley is now known as tcrawley-away
bjfish2 has quit [Quit: bjfish2]
tomjoro has quit [Remote host closed the connection]
daicoden_ has quit [Remote host closed the connection]
<kares_>
lan5432: wasn't there a case to reproduce on the issue?
<lan5432>
Yes, but I don't know how to enable debug mode, I see the traces, but I saw the code has a debug mode or something
<kares_>
debug mode for what? really nto sure I follow what you're asking for ...
<lan5432>
For reification, I was looking at the code of RubyClass for the reify method
<kares_>
-Xreify smt check jruby --properties it will be there or its in the wiki where cmt line opts are documented
<kares_>
* documented
<kares_>
if you just want to see that in VisualVM
<lan5432>
Can I use that with IRB? Or would it be better to see that with VisualVM?
Aethenelle has quit [Read error: Connection reset by peer]
<kares_>
lan5432: once again not sure - what do you want to see - a on fly generated byte-code using IRB :) ?
<kares_>
if you're trying to reproduce reify happens on become_java!
<kares_>
seen that mentioned for you by Tom before
<kares_>
in that case you do not need the -Xreify flag
<kares_>
its mostly for Java tooling to easily identify Ruby classes
<lan5432>
Hmmm, the thing is, I'm trying to learn how reify does the magic, how it locates method and constructors
<lan5432>
So I know why it's not working
<kares_>
and do you have a piece of Ruby ... wasn't there some code on the JavaFX issue you were looking at?
<lan5432>
Yes, I have code to test and a trace to look at, but in the trace RubyClass is never mentioned yet I do believe there's something failing there
<lan5432>
And also code from byteit, but I think it's an example on how to manage those errors, but I need to know where they happen, I'm still learning the structure of the code
<lan5432>
Goddamnit, I'm losing my own track of thought here. You mean the pull request rtyler uploaded with a patch headius made?
<kares_>
there's a commit referenced on the issue page
<kares_>
should have noted that I did not confirm its the same issue you were originally on
<kares_>
seems like it but maybe you want to confirm that
<lan5432>
There were two commits, one yours and the other one from rtyler referencing this issue. As far as I'm concerned you only said it could be related to this, and I believe so as well
<kares_>
the other side to reproduce is missing - there needs to be some Java code consuming the become_java! Example instance
<lan5432>
I'm playing around with it both to learn how to use it and see how it behaves for this issue
<lan5432>
Also, I saw your issue with Map proxies and modifications, should I be interested on that discussion or do you think it's better for me to pay attention to other stuff?
tjohnson has joined #jruby
brightball has joined #jruby
<kares_>
lan5432: whatever you want - there was also a package refactoring I forgot to cc you in
<kares_>
originally promised interface refactoring but I meant packages really ...
Aethenelle has joined #jruby
subbu|away is now known as subbu
<kares_>
feel free to follow the java_integration tagged stuff - just make sure you're not completely lost
cremes has quit [Remote host closed the connection]
<lan5432>
I try to understand it, and not make totally oblivious comments on the issues. So the discussion you opened was that Map allows concurrent modification within the same thread by means of 'visitall' and if we should allow that because it makes it kinda unsafe?
cremes has joined #jruby
tcrawley is now known as tcrawley-away
<kares_>
OK - let me try to explain (before I leave) so you get something out of it :
<kares_>
- in Java when you iterate a Map's entrySet and during the iterator you map.remove an entry the iterator will fail (at least I hope so) with ConcurrentModificationException
mkristian has quit [Quit: This computer has gone to sleep]
<kares_>
- in Ruby a Hash does allow that behavior (does not fail if you remove an element while iterating) - JRuby has its custom RubyHash implemented to support this
<kares_>
- when you do a java.util.HashMap.new (any Map instance) in JRuby its wrapped in a proxy so that it acts like a Ruby Hash
<kares_>
now the question is whether for such cases while you iterate a map it should fail on remove (like it would in Java) or instead act like a Hash (despite it not being a Hash)
pawnbox has quit [Remote host closed the connection]
<lan5432>
Yes, I got that part
<lan5432>
I didn't know exactly what a Hash was, C# and Java already confused me once with the damn names
<kares_>
personally am 50/50 on it that is why the issue is open whether we do want to change the current state - feel free to comment
<lan5432>
Yeah, I feel the same...
<kares_>
lan5432: ah OK we commonly use Ruby terminology - Hash, Array meaning Ruby types
<lan5432>
ConcurrentModificationException has been my bane, but there's a reason it's not allowed, obviously
<kares_>
its a pickle
skade has quit [Quit: Computer has gone to sleep.]
<kares_>
it probably will stay as is until people using JI start to complain :)
<kares_>
JI - (JRuby's) Java Integration
<lan5432>
Yeah, like one of my teachers said: the haters will come and we'll have to work on that XD
<lan5432>
Yeah, I got what JI was about, really sorry for being a little obvlibious to the terminology
pawnbox has quit [Remote host closed the connection]
shellac has quit [Quit: Ex-Chat]
<norc>
Here is a true story, I never considered using jruby for the massive pain that managing java brings. But ever since ruby-install and chruby seem to magically make it work without the slightest involvement, Im hooked.
<norc>
Am I the only one?
<headius>
that's a frequent reaction
<headius>
we've worked very hard to make JRuby feel like Ruby and not like a JVM language
<norc>
Makes sense.
<norc>
Well, guess its time to after all get into the pain though, because I have the unhandled Java exception being thrown in my face, and I want it fixed. Seems like ruby-install does not set up a nice development environment for me too. ;-)
<GitHub134>
jruby/master 851974d Thomas E. Enebo: Fixes #1285. Broken JRuby and UTF-8 method names
brauliobo_ has quit [Ping timeout: 240 seconds]
brauliobo_ has joined #jruby
pawnbox has quit [Remote host closed the connection]
whitby has joined #jruby
<GitHub180>
[jruby] perlun opened pull request #3774: Enable tests on 64-bit Java on Windows as well. (jruby-1_7...update-appveyor-on-1-7-branch) https://git.io/vVWnt
pawnbox has joined #jruby
<GitHub5>
[jruby] enebo closed issue #584: wrong current line https://git.io/vVWcD
<GitHub159>
[jruby] enebo closed issue #885: NullPointerException in CachingCallSite.pollAndGetClass https://git.io/vVWCb