WALA/com.ibm.wala.ide.jsdt.tests
Ben Liblit b1678882b3 Plug numerous potential resource leaks
This fixes 33 out of 37 Eclipse "Potential resource leak: '...' may
not be closed" warnings.  It also fixes 3 out of 37 Eclipse "Resource
'...' should be managed by try-with-resource" warnings, although that
was not the main focus of this effort.

The remaining 4 warnings about potential resource leaks all involve a
leaked JarFile instance that is passed to a JarFileModule constructor
call.  JarFileModile never attempts to close its underlying JarFile;
this code is written as though JarFile cleanup were the caller's
responsibility.  However, the JarFile often cannot be closed by the
code that creates the JarFileModule either, since the JarFile needs to
remain open while the JarFileModule is in use, and some of these
JarFileModules stay around beyond the lifetime of the code that
created them.  Truly fixing this would essentially require making
JarFileModule implement Closeable, which in turn would probably
require that Module implement Closeable, which in turn would require
changes to lots of code that deals with Module instances to arrange
for them to be properly closed.  That's more invasive than I'm
prepared to take on right now.
2017-03-12 21:38:43 -05:00
..
.settings Merge branch 'master' into warning-fixes-xml-validation 2016-11-29 10:08:00 -06:00
META-INF switch version to 1.3.10-SNAPSHOT 2016-05-10 22:53:28 +09:00
launchers cross-cutting changes to make more of WALA runnable with TeaVM. The biggest change is refactoring to AnalysisCache and friends; since TeaVM does not support SoftReference, I needed to add a layer of interfaces so that I can use a more simpleminded caching implementation for TeaVM. There are other changes to Module and friends to break connections with File and URL, which also cause TeaVM grief. I also organized imports in many places to remove unused types that caused trouble. 2017-02-02 20:33:27 -05:00
src/com/ibm/wala/ide/jsdt/tests Plug numerous potential resource leaks 2017-03-12 21:38:43 -05:00
testdata add ignore file 2013-08-08 10:23:51 -07:00
.classpath fixes to regression tests: 2015-03-24 21:51:35 -04:00
.project Create new project com.ibm.wala.ide.jsdt.tests. 2012-11-28 12:09:55 -05:00
build.properties Create new project com.ibm.wala.ide.jsdt.tests. 2012-11-28 12:09:55 -05:00
pom.xml switch version to 1.3.10-SNAPSHOT 2016-05-10 22:53:28 +09:00