Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.5
-
Component/s: Core Classes/Modules, HelpWanted, Ruby 1.9.2
-
Labels:None
-
Number of attachments :
Description
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.
Activity
Thomas E Enebo
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Thomas E Enebo [ enebo ] | |
| Component/s | Core Classes/Modules [ 12230 ] |
Lea Wang
made changes -
| Assignee | Thomas E Enebo [ enebo ] | |
| Fix Version/s | JRuby 1.4 [ 15285 ] |
Thomas E Enebo
made changes -
| Fix Version/s | JRuby 1.4 [ 15285 ] | |
| Fix Version/s | JRuby 1.x+ [ 13421 ] | |
| Assignee | Thomas E Enebo [ enebo ] | |
| Component/s | HelpWanted [ 14060 ] | |
| Summary | Array#sort should honor modifications to String and Fixnum | [19] Array#sort should honor modifications to String and Fixnum |
Thomas E Enebo
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | JRuby 1.5 [ 15792 ] | |
| Fix Version/s | JRuby 1.x+ [ 13421 ] | |
| Resolution | Fixed [ 1 ] | |
| Assignee | Thomas E Enebo [ enebo ] |
Charles Oliver Nutter
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |