Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.x+
-
Component/s: HelpWanted, Java Integration
-
Labels:None
Description
I don't like that we are using the presence of StringIO to change the way Java integration installs to_channel/to_inputstream/to_outputstream for all Objects in the system. It should be formalized better and cleaned up.
Along with fixing this we should add specs for the newly-restored IO#to_channel that returns the actual channel, and clean up how those IO-related to_* methods work for other IO-like objects. Perhaps the "any_to_*" methods in AnyIO should try to do to_io?