[
https://issues.apache.org/jira/browse/TAP5-2611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16870370#comment-16870370
]
Dmitry Gusev commented on TAP5-2611:
------------------------------------
I tried to create a test for the fix, but I couldn't.
To reproduce the bug we need to build classes under test with at least Java 11
target compatibility of byte code, because only in that case synthetic bridge
methods will be omitted.
We already have a test for nested/inner classes in the
`FieldConduitTests.groovy`, but it will always pass with target compatibility <
11, current build has target compatibility = 8.
One possible solution here is to create a new separate test module in the build
with target compatibility = 11 and add it as dependency for `:plastic:test`,
but to do so we first need to make current build working on java 11.
> Nested classes cannot access instrumented fields of parent classes since Java
> 11
> --------------------------------------------------------------------------------
>
> Key: TAP5-2611
> URL: https://issues.apache.org/jira/browse/TAP5-2611
> Project: Tapestry 5
> Issue Type: Bug
> Components: plastic
> Affects Versions: 5.4.4
> Reporter: Dmitry Gusev
> Assignee: Dmitry Gusev
> Priority: Major
>
>
> It only affects Java 11 and above, since Java stopped using synthetic bridge
> methods.
> More details can be found in this thread:
>
> [http://mail-archives.apache.org/mod_mbox/tapestry-dev/201904.mbox/%3cCA+v6cT8Tuy0dLxpejExL8AffY01XQyS9_bS6rDFuu3dTK_=v...@mail.gmail.com%3e]
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)