Issue #5725 Review preventers. (#5839)

Note that any Preventer that is documented as being fixed prior to jdk11
should be deleted from jetty-10/11 when this change is merged through.

Signed-off-by: Jan Bartel <janb@webtide.com>
This commit is contained in:
Jan Bartel 2020-12-24 15:29:31 +01:00 committed by GitHub
parent ea24a8146d
commit 29c00ebdf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 0 deletions

View File

@ -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 * 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. * 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 public class DOMLeakPreventer extends AbstractLeakPreventer
{ {

View File

@ -34,7 +34,10 @@ import java.lang.reflect.Method;
* RMI. * RMI.
* *
* Inspired by Tomcat JreMemoryLeakPrevention. * 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 public class GCThreadLeakPreventer extends AbstractLeakPreventer
{ {

View File

@ -25,7 +25,11 @@ package org.eclipse.jetty.util.preventers;
* before webapp classloaders are created. * before webapp classloaders are created.
* *
* See https://issues.apache.org/bugzilla/show_bug.cgi?id=51687 * 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 public class Java2DLeakPreventer extends AbstractLeakPreventer
{ {

View File

@ -27,7 +27,10 @@ package org.eclipse.jetty.util.preventers;
* load the LdapPoolManager. * load the LdapPoolManager.
* *
* Inspired by Tomcat JreMemoryLeakPrevention * Inspired by Tomcat JreMemoryLeakPrevention
*
* @deprecated fixed in jdk 8u192
*/ */
@Deprecated
public class LDAPLeakPreventer extends AbstractLeakPreventer public class LDAPLeakPreventer extends AbstractLeakPreventer
{ {

View File

@ -26,7 +26,9 @@ package org.eclipse.jetty.util.preventers;
* that by invoking the classloading here. * that by invoking the classloading here.
* *
* Inspired by Tomcat JreMemoryLeakPrevention * Inspired by Tomcat JreMemoryLeakPrevention
* @deprecated classloader does not seem to be held any more
*/ */
@Deprecated
public class LoginConfigurationLeakPreventer extends AbstractLeakPreventer public class LoginConfigurationLeakPreventer extends AbstractLeakPreventer
{ {

View File

@ -28,7 +28,10 @@ import java.security.Security;
* is not a webapp classloader. * is not a webapp classloader.
* *
* Inspired by Tomcat JreMemoryLeakPrevention * Inspired by Tomcat JreMemoryLeakPrevention
*
* @deprecated sun.security.pkcs11.SunPKCS11 class explicitly sets thread classloader to null
*/ */
@Deprecated
public class SecurityProviderLeakPreventer extends AbstractLeakPreventer public class SecurityProviderLeakPreventer extends AbstractLeakPreventer
{ {