-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG]开启 JDK9 Module功能,fastjson2 和 fastjson2-extension 包的 module name 同名 #1923
Comments
麻烦提供下可以复现的测试示例吧 |
2.0.42版本这个问题还存在么? |
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.45-SNAPSHOT/ |
是 fastjson2-extension 包中的 module name 不对,而不是 fastjson2 包。 |
恩,最新的快照里已经 ok 了 |
问题描述
开启 JDK9 Module功能,fastjson2 和 fastjson2-extension 包的 module name 同名
环境信息
请填写以下信息:
重现步骤
在代码中使用 com.alibaba.fastjson2.support.config.FastJsonConfig 类,需要在 module-info.java 中 requires com.alibaba.fastjson2。
FastJsonConfig 类在 fastjson2-extension.jar 中,此 jar 的 module-info.java 中配置的 module name 为 com.alibaba.fastjson2。
但是 fastjson2.jar 中 module-info.java 配置的 module name 同样为 com.alibaba.fastjson2,两个 jar 的 module name 同名。
当两个 jar 同时被引用时,根据 module name 冲突
此 bug 为 #1856 修复后的新 bug
The text was updated successfully, but these errors were encountered: