RFR: 8317868: Add @sealedGraph to MethodHandleDesc and descendants

Chen Liang liach at openjdk.org
Wed Oct 11 08:00:02 UTC 2023


On Wed, 11 Oct 2023 07:45:17 GMT, Per Minborg <pminborg at openjdk.org> wrote:

> This PR proposes to add  @sealedGraph to MethodHandleDesc and descendants.

src/java.base/share/classes/java/lang/constant/DirectMethodHandleDesc.java line 49:

> 47:  * a {@code Constant_MethodHandle_info} entry in the constant pool of a classfile.
> 48:  *
> 49:  * @sealedGraph

DMH desc has no public implementation subtypes. A `@sealedGraph` would probably just render a single root node, which is not informative.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16137#discussion_r1354341911


More information about the core-libs-dev mailing list