Clone
Max Barkley
committed
on 20 Nov 15
Fix JavaReflectionClass bug with no-argument bridge methods.
When a class overrides a generic method, the compiler generates
a bridge method… Show more
Fix JavaReflectionClass bug with no-argument bridge methods.

When a class overrides a generic method, the compiler generates

a bridge method (see https://docs.oracle.com/javase/tutorial/java/generics/bridgeMethods.html).

Bridge methods are returned by Class.getDeclaredMethods().

This commit ensures that bridge methods are not returned by

JavaReflectionClass.getMethods(), which avoids codegen issues

when a bridge method differs from the actual method only by

return type.

Show less