REXML::XPath - problem with 'and' in xpath#1743
REXML::XPath - problem with 'and' in xpath#1743LTe wants to merge 2 commits intorubinius:masterfrom LTe:rexml_path
Conversation
|
Is this also a problem on MRI? Our stuff in lib/ is a copy of MRI as much as possible. If this is a bug in MRI too and is fixed in newer versions, we should probably just update our stuff in lib/ |
No (tested on today ruby-head, ruby-1.9.3-p125, ruby-1.8.7-p358) |
|
@LTe In that case we should probably import the latest versions from those and not create custom changes in Rubinius, that will only increase the maintenance burden. |
|
I also see that you only added a spec for 1.8 mode, any reason that the spec isn't run in 1.9 mode? |
Make sense:
We can delete that (and test this for 2.0 too). My mistake, I wanted to be there |
|
If you want to, you can open a pull request where you copy the latest version of REXML from MRI's 1.8.7 and 1.9.3 branch into lib/18/rexml and lib/19/rexml |
With pleasure ;-) |
How to reproduce bug:
When developer uses 'and' many times in xpath then
leftvariable (https://github.com/rubinius/rubinius/blob/master/lib/19/rexml/xpath_parser.rb#L437) istruesoinjectmethod will raise exeception.