Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 0.9.8
-
Component/s: Core Classes/Modules
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
For some reason, adding methods to File or other instances of Module/Class will add methods to the Module instead. Witness the File#size that can be used on module:
Module.size("README")
Charles fixed this a few commits back. It wasn't the general case, just a few classes that added to the wrong metaclass.