[
https://issues.apache.org/jira/browse/IO-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17262451#comment-17262451
]
Dominik Derwiński commented on IO-695:
--------------------------------------
I'm not sure not setting the date at all is the same as ignoring failure to set
it. It's a bonus operation, that is welcome if it succeeds, but nothing
dramatic happens if it doesn't. Perhaps there need to be multiple versions of
the method.
> Exception while there should be none in copyFile
> ------------------------------------------------
>
> Key: IO-695
> URL: https://issues.apache.org/jira/browse/IO-695
> Project: Commons IO
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.8.0
> Reporter: Dominik Derwiński
> Priority: Minor
>
> {{public static void copyFile(final File srcFile, final File destFile, final
> boolean preserveFileDate)}} java doc says: "If the modification operation
> fails, no indication is provided", yet the method raises an {{IOException}}
> "Failed setLastModified on ...".
--
This message was sent by Atlassian Jira
(v8.3.4#803005)