![]() |
|
|
Issue Type:
|
Improvement
|
Affects Versions:
|
JRuby 1.7.0.pre1 |
Assignee:
|
Thomas E Enebo
|
Components:
|
Standard Library |
Created:
|
26/May/12 8:02 AM
|
Description:
|
Due to 43bd20f28fa185430f7bf06f529db0221f9e79c3, Tempfile#{unlink,delete} now do nothing in JRuby.
The comment was very helpful in my search, thanks Charles!
I think the situation could be improved by warning when someone is using unlink or delete.
This behavior being not compatible with MRI, and calling unlink/delete after close(false) actually not deleting the file is quite surprising.
Maybe unlink/delete could actually delete the file if it "isClosed()" before (with #close(false)) ?
This is not a major problem since the proper way to unlink the tempfile is using #close(true). But I expect `tmp.close; tmp.delete` to be similar to tmp.close(true).
|
Project:
|
JRuby
|
Priority:
|
Major
|
Reporter:
|
Benoit Daloze
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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