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

Chris Plummer cjplummer at openjdk.java.net
Mon Nov 29 23:25:14 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.

Marked as reviewed by cjplummer (Reviewer).

-------------

PR: https://git.openjdk.java.net/jdk/pull/6601


More information about the serviceability-dev mailing list