javajava-17jep

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


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?


Solution

  • 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.