diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index b28cbc824..7d70e95e4 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -96,6 +96,7 @@ Irene Rusman
Ivan Ivanov
Jack J. Woehr
James Duncan Davidson
+Jan Cumps
Jan Matèrne
Jan Mynarik
Jason Hunter
diff --git a/WHATSNEW b/WHATSNEW
index 8b7f21055..794ace806 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -22,6 +22,8 @@ Fixed bugs:
* URLResource did not close jar files, and also did not disconnect HTTPConnection (s).
+* error calling junitreport. Bugzilla 40595.
+
* created junitvmwatcher*.properties files but did not close and delete them.
* did not create properties for empty leaf elements.
diff --git a/contributors.xml b/contributors.xml
index e0cac7ad6..8701ce00a 100644
--- a/contributors.xml
+++ b/contributors.xml
@@ -398,6 +398,10 @@
Jan
Matèrne
+
+ Jan
+ Cumps
+
Jan
Mynarik
diff --git a/src/main/org/apache/tools/ant/types/resources/URLResource.java b/src/main/org/apache/tools/ant/types/resources/URLResource.java
index c7a2e0161..45d83bd14 100644
--- a/src/main/org/apache/tools/ant/types/resources/URLResource.java
+++ b/src/main/org/apache/tools/ant/types/resources/URLResource.java
@@ -361,7 +361,6 @@ public class URLResource extends Resource {
* @throws Throwable on error.
*/
protected void finalize() throws Throwable {
- close();
conn = null;
super.finalize();
}