fenixsoft / fenixsoft/monolithic_arch_springboot

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

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
570
Forks
324
PR merge metrics
No merged PRs in 30d

Description

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

报错:

[Jacoco java.lang.instrument.IllegalClassFormatException: Error while instrumenting Class](https://stackoverflow.com/questions/69906908/jacoco-java-lang-instrument-illegalclassformatexception-error-while-instrumenti)

我的解决方法是升级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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.