SystemCallError.new does not create an Errno instance -----------------------------------------------------
Key: JRUBY-4071 URL: http://jira.codehaus.org/browse/JRUBY-4071 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.4.0RC1 Reporter: Justin Collins SystemCallError.new is supposed to create a new instance of the appropriate Errno class based on the errno given. However, there seems to be some problem: irb(main):001:0> Errno::EACCES.new.errno => 13 irb(main):002:0> SystemCallError.new 13 => #<SystemCallError: Unknown error 13> This is with jruby 1.4.0RC1 (ruby 1.8.7 patchlevel 174) (2009-09-30 80c263b) (OpenJDK Client VM 1.6.0_0) [i386-java] Compare to MRI: irb(main):001:0> Errno::EACCES.new.errno => 13 irb(main):002:0> SystemCallError.new 13 => #<Errno::EACCES: Permission denied> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email