RFR: 4397513: (reflect) InvocationHandler.invoke javadoc slightly misleading for "method" parameter

Chen Liang liach at openjdk.org
Wed Oct 22 21:48:33 UTC 2025


The `method` parameter documentation for `InvocationHandler::invoke` does not indicate that it may be one of the 3 Object methods `hashCode`, `equals`, or `toString`. This doc-only improvement clarifies that, links to the Proxy section about declaring class selection, and updates the "the interface method" occurrences to be "the invoked method" to reflect the method may be from `Object`.

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

Commit messages:
 - Change
 - 4397513: (reflect) InvocationHandler.invoke javadoc slightly misleading for "method" parameter

Changes: https://git.openjdk.org/jdk/pull/27943/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27943&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-4397513
  Stats: 15 lines in 2 files changed: 3 ins; 0 del; 12 mod
  Patch: https://git.openjdk.org/jdk/pull/27943.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27943/head:pull/27943

PR: https://git.openjdk.org/jdk/pull/27943


More information about the core-libs-dev mailing list