Open cristyrye opened 7 years ago
After some tests I found out that even if I extract multiple resources from the jar, only 1 descriptor is open. For 5 extracted files there should be 5 file leaks, but there is just one. I think now it is a file leak descriptor bug.
java itself opens the jar, but does not close it any more. So it is more a false positive, see the exclude feature for how you can remove such things from the report
I want to get a file from the current running jar, and this is my code:
public static void extractTextResource(Object obj, String includedFile, String outputFile) {
}
File leak detector result: 1 descriptors are open
1 D:\application.jar by thread: main on Mon May 15 17:38:12 EEST 2017
Is my code wrong? is file leak detector wrong? is there a bug in Java Library?