fastjson 模块报错
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
### 问题描述
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项目帮助重现该问题。
[test.zip](https://github.com/user-attachments/files/15911837/test.zip)
Contributor guide
Research direction
Start with the supplied test.zip, module-info.java, and build.gradle, then compare the Gradle module compilation behavior between fastjson2 2.0.49 and 2.0.50. Reproduce the `module not found: fastjson` error on JDK 17 and verify that the affected module build succeeds with the corrected dependency or module metadata.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100