Java “too many constants” JVM error

后端 未结 4 1911
广开言路
广开言路 2020-12-16 19:51

I\'m developing an application that generates and compiles classes at runtime. This will sometimes create huge amounts of generated code.

With one of our test cases,

4条回答
  •  [愿得一人]
    2020-12-16 20:17

    Section 5.1 of the JVM spec defines exactly what constitutes the constant pool (mostly references to classes/methods and literals).

提交回复
热议问题