Gerald Boersma wrote:
Hi:

I would like to contribute to the JRuby project, and I am starting with Charles suggestion to fix RubySpec bugs. I have successfully run the test case for #3745 against the latest code from github using the procedure he describes, reproduced the RubySpec result, and written my own test code to prove to myself that I understand the defect.

Where can I look in the code base to understand how to determine in what context the Hash.rehash method is called, i.e. if it is called from an iterator over the Hash or not? I see from the Hash.each method how the yield to the block is performed and how the reference to the block to be used is called. I am not sure how to use that to safely determine that a rehash to the same Hash is being called from that same block (or even if that is a good approach. It doesn't smell quite right to me...).

Any suggestions?

If you think this defect is too big a bite to start with (i.e. first requires deep understanding of JRuby architecture / design), any suggestions for easier ones are welcome. But I am willing to start anywhere...

BTW, searching through the dev mail archive using CodeHaus is not working very well for me. Trying a search on "3745" or "RUBY-3745" gives me "Unfortunately, there was an unexpected issue processing your request. " (after I prove I am human... ;-)

Thanks,
Gerald


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


As Charlie explains in the blog post you mention, the Ruby classes are defined in src/org/jruby/Ruby*.java. So Hash is defined in src/org/jruby/RubyHash.java. (Hash#rehash starts on line 732.)

The rest of src/org/jruby/* is Java integration support or internals. lib is core and standard libraries, as well as the destination for jruby.jar.

Hiro

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to