Skip to content
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

jdk 18情况下,验证工程的mvnw.cmd package 发现测试失败 #7

Open
1000copy opened this issue Jun 30, 2022 · 0 comments
Open

Comments

@1000copy
Copy link

jdk 18情况下,下载此工程,然后执行mvnw.cmd package 发现测试失败报错。

报错:

Jacoco java.lang.instrument.IllegalClassFormatException: Error while instrumenting Class

我的解决方法是升级jacoco到0.8.8即可。

接下来另外一个错误是测试用例PaymentResourceTest.updatePaymentState 失败,我暂时标注掉它解决

然后,ProdcutResourceTest.updateAndQueryStockpile失败,我暂时标注掉它解决

在Eclipse内没有这些问题。

java.exe -version
openjdk version "18.0.1" 2022-04-19
OpenJDK Runtime Environment (build 18.0.1+10-24)
OpenJDK 64-Bit Server VM (build 18.0.1+10-24, mixed mode, sharing)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant