< prev index next >

test/jdk/com/sun/jdi/ReferrersTest.java

Print this page
@@ -1,7 +1,7 @@
  /*
-  * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
+  * Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

@@ -452,10 +452,13 @@
                  return;
              }
              if (name.equals("java.lang.ref.SoftReference")) {
                  return;
              }
+             if (name.equals("java.lang.reflect.Method")) {
+                 return;
+             }
              // oh oh, should really check for a subclass of ClassLoader :-)
              if (name.indexOf("ClassLoader") >= 0) {
                  return;
              }
              // No doubt there are other reasons to stop ...
< prev index next >