Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
None
-
None
-
Patch
Description
at org.codehaus.groovy.control.ResolveVisitor.isSourceNewer(ResolveVisitor.java:296) is a resource leak:
lastMod = source.openConnection().getLastModified();
The connection returned by openConnection() is never closed.
I think the solution is:
URLConnection conn = source.openConnection(); lastMod = conn.getLastModified(); conn.getInputStream.close();