Redundant bridge methods in nested classes

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Wed Aug 5 20:55:58 UTC 2015



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.

Maurizio


More information about the compiler-dev mailing list