8341199: Use ClassFile's new API loadConstant(int)

Reviewed-by: liach, redestad
This commit is contained in:
Shaojin Wen 2024-09-30 14:12:01 +00:00
parent 860d49db22
commit f1bf469b4e
4 changed files with 9 additions and 9 deletions

View file

@ -659,7 +659,7 @@ public class SwitchBootstraps {
MethodTypeDesc.of(ConstantDescs.CD_char));
cb.labelBinding(compare);
cb.ldc(integerLabel);
cb.loadConstant(integerLabel);
cb.if_icmpne(next);
} else if ((caseLabel instanceof Long ||
caseLabel instanceof Float ||