Array#sort should honor modifications to String and Fixnum
----------------------------------------------------------

                 Key: JRUBY-3427
                 URL: http://jira.codehaus.org/browse/JRUBY-3427
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.9
            Reporter: Charles Oliver Nutter
            Assignee: Thomas E Enebo


In Ruby 1.8, Array#sort had special-cased logic for Fixnum and String, and did 
not actually dispatch to their methods. In Ruby 1.9, it does dispatch if those 
methods have been overridden. We must honor this behavior.

Along with this we will need a fast way to check whether a method on a target 
class has been overridden, so we can quickly determine whether to try a full 
dispatch or not. This will have applicability to other bugs.

At any rate, getting the basic behavior in comes first.

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