RFR: 8277803: vmTestbase/nsk/jdi/TypeComponent/isSynthetic/issynthetic001 fails with "Synthetic fields not found"
David Holmes
dholmes at openjdk.java.net
Mon Nov 29 22:57:04 UTC 2021
On Mon, 29 Nov 2021 21:38:14 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:
> This change fixes `vmTestbase/nsk/jdi/TypeComponent/isSynthetic/issynthetic001` after [JDK-8271623](https://bugs.openjdk.java.net/browse/JDK-8271623).
>
> [JDK-8271623](https://bugs.openjdk.java.net/browse/JDK-8271623) causes javac to omit a synthetic field from inner classes that do not reference their enclosing instance. The test was specifically checking for the presence of the synthetic field. To fix the test, this change adds an explicit reference to the enclosing instance of an inner class.
Looks good.
Thanks,
David
-------------
Marked as reviewed by dholmes (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/6601
More information about the serviceability-dev
mailing list