fastjson2
fastjson2 copied to clipboard
fastjson 模块报错
问题描述
fastjson 模块报错
环境信息
- OS信息: Windows 10
- JDK信息: JDK 17
- 版本信息:2:2.0.50, 2:2.0.51
重现步骤
在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项目帮助重现该问题。
Same issue here which blocks us from moving to version 2:2.0.50 or higher.
2.0.15 就修过一次,又出现了,发布都不测试的吗。
2.0.52问题已经修复了,这个目前在单测中没有覆盖,需要补上,也欢迎提交PR参与进来。