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

@ -160,7 +160,8 @@ public interface MethodHandleInfo {
/**
* Returns the name of the cracked method handle's underlying member.
* This is {@code "<init>"} if the underlying member was a constructor,
* This is {@value java.lang.constant.ConstantDescs#INIT_NAME}
* if the underlying member was a constructor,
* else it is a simple method name or field name.
* @return the simple name of the underlying member
*/