add a comment about a resource leak problem

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4074 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
sjfink 2011-03-18 12:46:14 +00:00
parent 13ca8a7aa8
commit 0fab9778c3
1 changed files with 7 additions and 0 deletions

View File

@ -66,6 +66,13 @@ public class FileUtil {
return result;
}
/**
* This may be a resource leak:
* http://bugs.sun.com/view_bug.do?bug_id=4724038
*
* We may have to reconsider using nio for this, or apply one of the horrible
* workarounds listed in the bug report above.
*/
public static void copy(String srcFileName, String destFileName) throws IOException {
if (srcFileName == null) {
throw new IllegalArgumentException("srcFileName is null");