RegexpError: target of repeat operator is invalid 
--------------------------------------------------

                 Key: JRUBY-2780
                 URL: http://jira.codehaus.org/browse/JRUBY-2780
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1.2
         Environment: jruby 1.1.2
            Reporter: Brian Tatnall
            Priority: Critical


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

-- 
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