Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1.2
-
Fix Version/s: JRuby 1.2
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:Latest JRuby 1.1.3-dev on Windows Vista x64.
Description
Most of etc methods return nil on Windows on x32 JDK, but raise NotImplementedError on the same PC with x64 JDK. Not consistent.
IMO, raising NotImplementedError is the correct behavior because they're not actually implemented. I wouldn't consider it a major issue either way, though. The only method that works on Windows is Etc.getlogin.
See the sys-admin library for a better, cross platform version of Etc.