8277803: vmTestbase/nsk/jdi/TypeComponent/isSynthetic/issynthetic001 fails with "Synthetic fields not found"

Reviewed-by: dholmes, cjplummer, sspitsyn
This commit is contained in:
Liam Miller-Cushon 2021-11-30 01:34:52 +00:00
parent 560f9c9372
commit 27299eaa98
2 changed files with 6 additions and 1 deletions

View File

@ -149,7 +149,6 @@ vmTestbase/nsk/monitoring/ThreadMXBean/ThreadInfo/Deadlock/JavaDeadlock001/TestD
vmTestbase/nsk/jdi/HiddenClass/events/events001.java 8257705 generic-all
vmTestbase/nsk/jdi/ThreadReference/stop/stop001/TestDescription.java 7034630 generic-all
vmTestbase/nsk/jdi/TypeComponent/isSynthetic/issynthetic001/TestDescription.java 8277803 generic-all
vmTestbase/metaspace/gc/firstGC_10m/TestDescription.java 8208250 generic-all
vmTestbase/metaspace/gc/firstGC_50m/TestDescription.java 8208250 generic-all

View File

@ -27,6 +27,7 @@ package nsk.jdi.TypeComponent.isSynthetic;
import nsk.share.*;
import nsk.share.jpda.*;
import nsk.share.jdi.*;
import java.util.Objects;
public class issynthetic001a {
@ -94,5 +95,10 @@ class ClassToCheck {
protected Inter ER0, ER1[]={ER0}, ER2[][]={ER1};
transient Inter ET0, ET1[]={ET0}, ET2[][]={ET1};
volatile Inter EV0, EV1[]={EV0}, EV2[][]={EV1};
{
// access enclosing instance so this$0 field is generated
Objects.requireNonNull(ClassToCheck.this);
}
}
}