[ https://issues.apache.org/jira/browse/IO-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17255464#comment-17255464 ]
Dominik Derwiński commented on IO-695: -------------------------------------- Code behaving like the Javadoc says would be better than altering the Javadoc to match how the code works. But I understand throwing exception is WAD. > 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)