forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New asFixnum, asBoolean, asString in Convert
Note: asString overlaps with a method on IRubyObject so this may be changing its name. These are the first methods to replace Ruby.newFixnum sorts of methods. Decoupling this is good for reasons: 1. Ruby is some mega method holder and it has long lost favor as an object vs ThreadContext. 2. Passing ThreadContext to all JRuby methods (long term goal) means we increasingly do not need Ruby in Ruby objects at all (very long term goal). 3. Using static methods decouples our implementation from our API This round did not completely eliminate all uses of the three methods but it converted hundreds of them. The biggest disruption in this PR is that a lot of @JRubyMethods which did not have ThreadContext now has them. This meant keeping the old method around but marking it deprecated. The fact we need to do this is a prime reason why the API initiave will pay off since there will come a time when we do not need to worry about people consuming our methods. The other side of this is our API will also be exposed properly once we fully modularize (which will mean we long convert people to these methods before we get to point where we cut off access to our other public methods -- which is out impl).
- Loading branch information
Showing
127 changed files
with
2,077 additions
and
1,423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.