Skip to content

Commit 80919eb

Browse files
zzambersjerboaa
authored andcommitted
8279669: test/jdk/com/sun/jdi/TestScaffold.java uses wrong condition
Reviewed-by: sgehwolf Backport-of: 4c52eb39431c2479b0d140907bdcc0311d30f871
1 parent ba6c4c1 commit 80919eb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,10 @@ 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
}

0 commit comments

Comments
 (0)