Skip to content

Commit 4c52eb3

Browse files
zzambersjerboaa
authored andcommitted
8279669: test/jdk/com/sun/jdi/TestScaffold.java uses wrong condition
Reviewed-by: amenkov, sspitsyn
1 parent d46410c commit 4c52eb3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -535,16 +535,15 @@ public void eventReceived(Event event) {
535535
Location loc = ((Locatable)event).location();
536536
ReferenceType rt = loc.declaringType();
537537
String name = rt.name();
538-
if (name.startsWith("java.") &&
539-
!name.startsWith("sun.") &&
540-
!name.startsWith("com.")) {
538+
if (name.startsWith("java.")
539+
|| name.startsWith("sun.")
540+
|| name.startsWith("com.")
541+
|| name.startsWith("jdk.")) {
541542
if (mainStartClass != null) {
542543
redefine(mainStartClass);
543544
}
544545
} else {
545-
if (!name.startsWith("jdk.")) {
546-
redefine(rt);
547-
}
546+
redefine(rt);
548547
}
549548
}
550549
}

0 commit comments

Comments
 (0)