On Tue, 13 Apr 2021 22:18:58 GMT, Joe Darcy <da...@openjdk.org> wrote:

> The results from Class.getDeclaredMethods can include bridge and other 
> synthetic methods, which can be unexpected by users (JDK-6815786, 
> JDK-8142904) and appear to be inherited methods. The javadoc for 
> Class.getDeclaredMethods should be updated to explicitly mention the 
> possibility of synthetic methods appearing.

This pull request has now been integrated.

Changeset: 80026d81
Author:    Joe Darcy <da...@openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/80026d81
Stats:     28 lines in 5 files changed: 26 ins; 1 del; 1 mod

8265174: Update Class.getDeclaredMethods to discuss synthetic and bridge methods

Reviewed-by: jfranck

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

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

Reply via email to