-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java21中无法使用预编译,且打成jar包后无法运行 #205
Comments
Jprotobuf是否能支持java21呢? |
你使用的是哪一个jdk? openjdk还是oracle的, 后续跟进一下这个版本 |
我试了graalvm-community-jdk-21.0.2以及oracle openJdk 21,现象一致 |
oracle openJdk 21, 没有复现你的问题。 方便把你测试的代码发一下吗? 另外看日志像是出错在 生成pb定义文件上,可以在maven中, 修改 false 测试一下是否还有同样问题 |
修改为false后编译通过了,经过测试,发现还是和类名导致的编译顺序有关系 |
至于打包成jar包后执行,则都无法执行,这是源代码 无法编译: 改类名后可编译: 编译后java -jar 无法运行,会报错 |
fixed at version 2.4.23 |
当我在java21中启用预编译插件时候,会报错
当我关闭预编译插件后运行在idea中运行正常,但是当我把它打成jar包后(编译正常)执行会报错
我使用的是maven,pom配置如下
The text was updated successfully, but these errors were encountered: