JDK-8265174 : Update Class.getDeclaredMethods to discuss synthetic and bridge methods
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-04-13
  • Updated: 2021-04-22
  • Resolved: 2021-04-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17 b19Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
The results from Class.getDeclaredMethods can include bridge and other synthetic methods, which can be unexpected by users. The javadoc for Class.getDeclaredMethods should be updated to explicitly mention this possibility.
Comments
Changeset: 80026d81 Author: Joe Darcy <darcy@openjdk.org> Date: 2021-04-14 16:15:54 +0000 URL: https://git.openjdk.java.net/jdk/commit/80026d81
14-04-2021