Skip to content

Commit 27299ea

Browse files
committed
8277803: vmTestbase/nsk/jdi/TypeComponent/isSynthetic/issynthetic001 fails with "Synthetic fields not found"
Reviewed-by: dholmes, cjplummer, sspitsyn
1 parent 560f9c9 commit 27299ea

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/hotspot/jtreg/ProblemList.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ vmTestbase/nsk/monitoring/ThreadMXBean/ThreadInfo/Deadlock/JavaDeadlock001/TestD
149149

150150
vmTestbase/nsk/jdi/HiddenClass/events/events001.java 8257705 generic-all
151151
vmTestbase/nsk/jdi/ThreadReference/stop/stop001/TestDescription.java 7034630 generic-all
152-
vmTestbase/nsk/jdi/TypeComponent/isSynthetic/issynthetic001/TestDescription.java 8277803 generic-all
153152

154153
vmTestbase/metaspace/gc/firstGC_10m/TestDescription.java 8208250 generic-all
155154
vmTestbase/metaspace/gc/firstGC_50m/TestDescription.java 8208250 generic-all

test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/isSynthetic/issynthetic001a.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import nsk.share.*;
2828
import nsk.share.jpda.*;
2929
import nsk.share.jdi.*;
30+
import java.util.Objects;
3031

3132

3233
public class issynthetic001a {
@@ -94,5 +95,10 @@ class NestedClass {
9495
protected Inter ER0, ER1[]={ER0}, ER2[][]={ER1};
9596
transient Inter ET0, ET1[]={ET0}, ET2[][]={ET1};
9697
volatile Inter EV0, EV1[]={EV0}, EV2[][]={EV1};
98+
99+
{
100+
// access enclosing instance so this$0 field is generated
101+
Objects.requireNonNull(ClassToCheck.this);
102+
}
97103
}
98104
}

0 commit comments

Comments
 (0)