Redundant bridge methods in nested classes

Liam Miller-Cushon cushon at google.com
Fri Aug 7 19:26:56 UTC 2015


On Wed, Aug 5, 2015 at 1:55 PM, Maurizio Cimadamore <
maurizio.cimadamore at oracle.com> wrote:

> On 03/08/15 22:21, Liam Miller-Cushon wrote:
>
>> I wrote an ASM pass to post process javac's output and work-around
>> JDK-8132776, so that I have a reference implementation to test changes
>> against. It removes bridge methods where there's an identical inherited
>> bridge (i.e. same name and descriptor, and invokes the same method). Does
>> that sound plausible?
>>
> Yep - modulo accessibility bridge (public members inherited from non
> public classes need to be bridged, otherwise reflection doesn't work), this
> is accurate.


Thanks for confirming. That approach seems to be working (with appropriate
handling for accessibility bridges), although it's a little hard to test
exhaustively.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20150807/28dce254/attachment.html>


More information about the compiler-dev mailing list