I\'m working on a huge legacy Java application, with a lot of handwritten stuff, which nowadays you\'d let a framework handle.
The problem I\'m facing right now is
One good thing I've found for tracking down unclosed file handles is FindBugs:
http://findbugs.sourceforge.net/
It checks many things, but one of the most useful is resource open/close operations. It's a static analysis program that runs on your source code and it's also available as an eclipse plugin.