Comparison not working on custom class
--------------------------------------

                 Key: JRUBY-5709
                 URL: http://jira.codehaus.org/browse/JRUBY-5709
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6
         Environment: Mac OSX, JRuby 1.6.0, Adhearsion 1.0.1
            Reporter: Ben Klang
            Assignee: Thomas E Enebo
            Priority: Minor


Since upgrading to JRuby 1.6.0, my unit tests have begun failing with this 
error:

ArgumentError: comparison of Adhearsion::PkgVersion with Adhearsion::PkgVersion 
failed
                < at org/jruby/RubyComparable.java:161
           (root) at 
/Users/bklang/src/adhearsion/spec/voip/dialplan_manager_spec.rb:409
      module_eval at org/jruby/RubyModule.java:2180
         subclass at 
/Users/bklang/.rvm/gems/jruby-1.6.0@ahndev/gems/rspec-core-2.5.1/lib/rspec/core/example_group.rb:132
         describe at 
/Users/bklang/.rvm/gems/jruby-1.6.0@ahndev/gems/rspec-core-2.5.1/lib/rspec/core/example_group.rb:118
         describe at 
/Users/bklang/.rvm/gems/jruby-1.6.0@ahndev/gems/rspec-core-2.5.1/lib/rspec/core/extensions/object.rb:6
           (root) at 
/Users/bklang/src/adhearsion/spec/voip/dialplan_manager_spec.rb:381
             load at org/jruby/RubyKernel.java:1062
  load_spec_files at 
/Users/bklang/src/adhearsion/spec/voip/dialplan_manager_spec.rb:386
          collect at org/jruby/RubyArray.java:2306
  load_spec_files at 
/Users/bklang/.rvm/gems/jruby-1.6.0@ahndev/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386
              run at 
/Users/bklang/.rvm/gems/jruby-1.6.0@ahndev/gems/rspec-core-2.5.1/lib/rspec/core/command_line.rb:18
   run_in_process at 
/Users/bklang/.rvm/gems/jruby-1.6.0@ahndev/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:55
              run at 
/Users/bklang/.rvm/gems/jruby-1.6.0@ahndev/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:46
          autorun at 
/Users/bklang/.rvm/gems/jruby-1.6.0@ahndev/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:10
             call at org/jruby/RubyProc.java:268
             call at org/jruby/RubyProc.java:232

The class in question is pretty short: 
https://github.com/adhearsion/adhearsion/blob/master/lib/adhearsion/version.rb

Note that this code passes fine under Ruby 1.8.7, Ruby 1.9.2 and JRuby 1.5.6.  
I tried checking if it was a missing method, but it looks like that is not the 
case.

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