且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

java.io.IOException:无效的常量类型:19 at 5

更新时间:2021-10-10 06:06:28

虽然这不是回答如何解决此问题,但如 JDK-8161256 中所述常量池标记:

Though this doesn't answer on how to fix this but as stated in JDK-8161256 about the Constant pool tags:


Java 9使用代码 19 20

以及当前的方式 javassist 创建 ClassFile 是通过查找 ConstantPool (表格直到Java8)使用 readOne 方法肯定缺少类似模块的最新java版本。 javassist 的依赖关系层次结构:

and the way currently javassist creates ClassFile is by looking up in the ConstantPool (table until Java8) using the readOne method which certainly lacks something like a Module for the latest java version. Your dependency hierarchy for javassist:



  • org.springframework.boot:spring-boot-starter-actuator:jar:2.0.0.M3:compile

  • org.springframework.boot:spring-boot-starter-actuator:jar:2.0.0.M3:compile


  • org .springframework.boot:spring-boot-starter-data-jpa:jar:2.0.0.M3:compile

  • org.springframework.boot:spring-boot-starter-data-jpa:jar:2.0.0.M3:compile


  • org .hibernate:hibernate-core:jar:5.2.10.Final:compile

  • org.hibernate:hibernate-core:jar:5.2.10.Final:compile


  • org.javassist:javassist:jar:3.21.0- GA:编译

查看 javassist 方面的事情:

rel_3_22_0_cr2 (上一版本)
读取与Java 9-ea + 164兼容。同样的问题发生在这个版本的javassist也是。

The rel_3_22_0_cr2 (last release) from them reads Compatible with Java 9-ea+164. Same issue occurs with this version of javassist as well.

所以你可以等待javassist用这个解决方案来回过头来。

So you can probably wait for javassist to come back over this with a solution.