Detecting and handling third-party library filehandle leaks in Java
Posted
by tucuxi
on Stack Overflow
See other posts from Stack Overflow
or by tucuxi
Published on 2010-04-23T18:54:20Z
Indexed on
2010/04/23
19:03 UTC
Read the original article
Hit count: 247
Is there any way to detect and handle whether a Java library is correctly releasing file-handles (via "close") from within a Java program that is using said library, short of having access to the actual library code and inserting the corresponding "finally close" statements?
If detection is feasible, is there any way to close those file-handles without a reference to the Reader (or FileInputStream) that was reading the file?
© Stack Overflow or respective owner