Summary: | Change to try-with-resources results in IOException | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Michael Wohlfart <michael.wohlfart> | ||||
Component: | Text | Assignee: | Platform-Text-Inbox <platform-text-inbox> | ||||
Status: | NEW --- | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | loskutov | ||||
Version: | 4.7 | Keywords: | needinfo | ||||
Target Milestone: | --- | ||||||
Hardware: | PC | ||||||
OS: | Windows 10 | ||||||
See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=500153 | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Michael Wohlfart
2020-05-26 05:55:09 EDT
Interesting. Can you provide the stack trace or a sample code producing the IOException? Few default implementations of OutputStream I've checked shouldn't throw on calling close() two times, just wondering which one you have in mind. Hmm.. the documentation of Closeable.close() says that invoking it on an already closed stream does not have any effect. This indeed points to a file store implementation that does not honor this contract. Thanks for the hint, looking further into this... |