java.io.IOException: invalid constant type: 19 at 5

不问归期 提交于 2019-11-30 20:15:35

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

Java 9 uses codes 19 and 20 for the module system.

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-data-jpa:jar:2.0.0.M3:compile

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

        • org.javassist:javassist:jar:3.21.0-GA:compile

Looking at the side of things:

  • There seems to be a similar bug registered on javassist/issues#147.

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

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!