alibaba / fastjson2

🚄 FASTJSON2 is a Java JSON library with excellent performance.
Apache License 2.0
3.82k stars 499 forks source link

fastjson 模块报错 #2722

Open yaozhihang opened 5 months ago

yaozhihang commented 5 months ago

问题描述

fastjson 模块报错

环境信息

重现步骤

在module-info.java 文件里引用fastjson2

module org.example {
    requires com.alibaba.fastjson2;
}

在build.gralde中配置了依赖

dependencies {
    implementation 'com.alibaba.fastjson2:fastjson2:2.0.50'
}

执行 gradlew build 后出现以下报错

> Task :compileJava FAILED
error: module not found: fastjson
1 error
...

这个问题是从版本2.0.50后出现的。2.0.49运行良好。下面附上简单的java项目帮助重现该问题。

test.zip

clausnagel commented 5 months ago

Same issue here which blocks us from moving to version 2:2.0.50 or higher.

wangxufire commented 4 months ago

2.0.15 就修过一次,又出现了,发布都不测试的吗。

wenshao commented 4 months ago

2.0.52问题已经修复了,这个目前在单测中没有覆盖,需要补上,也欢迎提交PR参与进来。