< prev index next >

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

Print this page
rev 48862 : 8279669: test/jdk/com/sun/jdi/TestScaffold.java uses wrong condition

@@ -530,13 +530,14 @@
                 public void eventReceived(Event event) {
                     if (redefineAtEvents && event instanceof Locatable) {
                         Location loc = ((Locatable)event).location();
                         ReferenceType rt = loc.declaringType();
                         String name = rt.name();
-                        if (name.startsWith("java.") &&
-                                       !name.startsWith("sun.") &&
-                                       !name.startsWith("com.")) {
+                        if (name.startsWith("java.")
+                            || name.startsWith("sun.")
+                            || name.startsWith("com.")
+                            || name.startsWith("jdk.")) {
                             if (mainStartClass != null) {
                                 redefine(mainStartClass);
                             }
                         } else {
                             redefine(rt);
< prev index next >