diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/DOMLeakPreventer.java b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/DOMLeakPreventer.java index 99f916faa99..564755b4ae7 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/DOMLeakPreventer.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/DOMLeakPreventer.java @@ -30,7 +30,10 @@ import javax.xml.parsers.DocumentBuilderFactory; * * Note that according to the bug report, a heap dump may not identify the GCRoot, making * it difficult to identify the cause of the leak. + * + * @deprecated reported as fixed in jdk 7, see https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6916498 */ +@Deprecated public class DOMLeakPreventer extends AbstractLeakPreventer { diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/GCThreadLeakPreventer.java b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/GCThreadLeakPreventer.java index ef1641acaa5..ff339e65cbd 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/GCThreadLeakPreventer.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/GCThreadLeakPreventer.java @@ -34,7 +34,10 @@ import java.lang.reflect.Method; * RMI. * * Inspired by Tomcat JreMemoryLeakPrevention. + * + * @deprecated fixed in jdvm 9b130, see https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8157570 */ +@Deprecated public class GCThreadLeakPreventer extends AbstractLeakPreventer { diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/Java2DLeakPreventer.java b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/Java2DLeakPreventer.java index f44310510b8..3fdb32e999c 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/Java2DLeakPreventer.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/Java2DLeakPreventer.java @@ -25,7 +25,11 @@ package org.eclipse.jetty.util.preventers; * before webapp classloaders are created. * * See https://issues.apache.org/bugzilla/show_bug.cgi?id=51687 + * + * @deprecated fixed in jdk 9, see https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6489540 + * */ +@Deprecated public class Java2DLeakPreventer extends AbstractLeakPreventer { diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LDAPLeakPreventer.java b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LDAPLeakPreventer.java index 395684f3a37..267c827ffbc 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LDAPLeakPreventer.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LDAPLeakPreventer.java @@ -27,7 +27,10 @@ package org.eclipse.jetty.util.preventers; * load the LdapPoolManager. * * Inspired by Tomcat JreMemoryLeakPrevention + * + * @deprecated fixed in jdk 8u192 */ +@Deprecated public class LDAPLeakPreventer extends AbstractLeakPreventer { diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LoginConfigurationLeakPreventer.java b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LoginConfigurationLeakPreventer.java index 4365e4e59e5..e3f6be132f9 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LoginConfigurationLeakPreventer.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LoginConfigurationLeakPreventer.java @@ -26,7 +26,9 @@ package org.eclipse.jetty.util.preventers; * that by invoking the classloading here. * * Inspired by Tomcat JreMemoryLeakPrevention + * @deprecated classloader does not seem to be held any more */ +@Deprecated public class LoginConfigurationLeakPreventer extends AbstractLeakPreventer { diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/SecurityProviderLeakPreventer.java b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/SecurityProviderLeakPreventer.java index 3ca736ef1b5..f990850b2da 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/SecurityProviderLeakPreventer.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/SecurityProviderLeakPreventer.java @@ -28,7 +28,10 @@ import java.security.Security; * is not a webapp classloader. * * Inspired by Tomcat JreMemoryLeakPrevention + * + * @deprecated sun.security.pkcs11.SunPKCS11 class explicitly sets thread classloader to null */ +@Deprecated public class SecurityProviderLeakPreventer extends AbstractLeakPreventer {