$~/Regexp.last_match lost when evaluation is inside a block
-----------------------------------------------------------

                 Key: JRUBY-2318
                 URL: http://jira.codehaus.org/browse/JRUBY-2318
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1RC3
            Reporter: Steven Parkes
            Assignee: Thomas E Enebo
         Attachments: jruby_lm.rb

When a regex is evaluated inside a block, it seems like $~/Regexp.last_match 
doesn't survive completion of the block. Code snippet which raises an exception 
under failure attached.

This affects both jruby 1.1RC3 and trunk r6337.

Behavior compared against 1.8.6 r15749 and 1.9 r15811.

Note this is extracted from autotest and is a blocker for me using autotest.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

    http://xircles.codehaus.org/manage_email


Reply via email to