8304139: Add <init> and <clinit> method constants to ConstantDescs

Reviewed-by: mchung
This commit is contained in:
Chen Liang 2023-03-21 16:16:08 +00:00 committed by Mandy Chung
parent d6f20e2fbf
commit 019fcd819c
7 changed files with 56 additions and 21 deletions

View file

@ -231,7 +231,7 @@ public sealed interface DirectMethodHandleDesc
/**
* Returns the name of the method or field described by this nominal descriptor.
* For constructors, returns the reserved name {@code "<init>"}.
* For constructors, returns the reserved name {@value ConstantDescs#INIT_NAME}.
*
* @return the name of the method or field
*/