In what scenarios should I use JEP334 (JVM Constants API)

360 Views Asked by At

I'm learning Java 17, and with JEP334 (JVM Constants API), I know how to get ClassDesc, MethodTypeDesc, MethodHandleDesc, DynamicConstantDesc.

But what can these objects do?

In what application scenarios do I need these objects?

1

There are 1 best solutions below

3
On BEST ANSWER

This library is intended to to be used by low-level libraries, such as bytecode parsing and generation APIs like ASM, reflection libraries, etc. Most Java developers will not need to use this.