Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1RC3
-
Fix Version/s: JRuby 1.1.2
-
Component/s: None
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
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.
Attachments
Issue Links
| This issue is duplicated by: | ||||
| JRUBY-2447 | Add the constant '$~' to the JRuby Runtime |
|
|
|
I've patched ZenTest to capture the matched data inside the block.
It's a quick fix until this issue gets resolved.