Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1.2
-
Fix Version/s: JRuby 1.1.6
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:jruby 1.1.2
-
Number of attachments :
Description
Using autotest for an rspec based project when errors occur there is a Regexp that raises an error in Jruby while no error is raised in MRI.
ruby -e "/\n(\.\/)?(.*\.rb):[\d]+:\Z?/"
jruby -e "/\n(\.\/)?(.*\.rb):[\d]+:\Z?/"
-e:1: target of repeat operator is invalid: /\n(\.\/)?(.*\.rb):[\d]+:\Z?/ (RegexpError)
Rubinius has the same bug found here:
http://rubinius.lighthouseapp.com/projects/5089-rubinius/tickets/587-regexperror-target-of-repeat-operator-is-invalid
Backtrace:
/mnt/intex/jruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/autotest/rspec.rb:30:in `consolidate_failures': target of repeat operator is invalid: /\n(\.\/)?(.*\.rb):[\d]+:\Z?/ (RegexpError)
from /mnt/intex/jruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/autotest/rspec.rb:30:in `each'
from /mnt/intex/jruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/autotest/rspec.rb:30:in `consolidate_failures'
from /mnt/intex/jruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/ZenTest-3.10.0/lib/autotest.rb:401:in `handle_results'
from /mnt/intex/jruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/ZenTest-3.10.0/lib/autotest.rb:274:in `run_tests'
from /mnt/intex/jruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/ZenTest-3.10.0/lib/autotest.rb:228:in `get_to_green'
from /mnt/intex/jruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/ZenTest-3.10.0/lib/autotest.rb:208:in `run'
from /mnt/intex/jruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/ZenTest-3.10.0/lib/autotest.rb:206:in `loop'
from /mnt/intex/jruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/ZenTest-3.10.0/lib/autotest.rb:206:in `run'
from /mnt/intex/jruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/ZenTest-3.10.0/lib/autotest.rb:136:in `run'
from /mnt/intex/jruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/ZenTest-3.10.0/bin/autotest:55:in `/mnt/intex/jruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/ZenTest-3.10.0/bin/autotest'
from /mnt/intex/jruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/ZenTest-3.10.0/bin/autotest:19:in `load'
from /mnt/intex/jruby/jruby-1.1.2/bin/autotest:19
I think this has come up before and it may be an Oniguruma/Joni bug. Rubinius and Ruby 1.9 use Oniguruma, and both show the issue.