File#mtime should raise error if called on closed object --------------------------------------------------------
Key: JRUBY-5282 URL: http://jira.codehaus.org/browse/JRUBY-5282 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.5.6 Environment: jruby 1.5.6 (ruby 1.8.7 patchlevel 249) (2010-12-03 9cf97c3) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [x86_64-java] Reporter: Daniel Berger Once an IO object is closed File#mtime (and most other File instance methods I think) should raise an IOError. MRI: {code} fh = File.open('test.txt') p fh.mtime # => works fh.close p fh.mtime # => IOError {code} JRuby: {code} fh = File.open('test.txt') p fh.mtime # => works fh.close p fh.mtime # => works ??? {code} -- 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