Skip to content

Commit b5bcf6c

Browse files
zzambersjerboaa
authored andcommitted
8279669: test/jdk/com/sun/jdi/TestScaffold.java uses wrong condition
Reviewed-by: phh, sgehwolf Backport-of: 4c52eb39431c2479b0d140907bdcc0311d30f871
1 parent 6f01b53 commit b5bcf6c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,10 @@ public void eventReceived(Event event) {
532532
Location loc = ((Locatable)event).location();
533533
ReferenceType rt = loc.declaringType();
534534
String name = rt.name();
535-
if (name.startsWith("java.") &&
536-
!name.startsWith("sun.") &&
537-
!name.startsWith("com.")) {
535+
if (name.startsWith("java.")
536+
|| name.startsWith("sun.")
537+
|| name.startsWith("com.")
538+
|| name.startsWith("jdk.")) {
538539
if (mainStartClass != null) {
539540
redefine(mainStartClass);
540541
}

0 commit comments

Comments
 (0)