Skip to content
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] jdk17 Java: module not found: com.alibaba.fastjson2 #780

Closed
wu1g119 opened this issue Sep 17, 2022 · 3 comments
Closed

[BUG] jdk17 Java: module not found: com.alibaba.fastjson2 #780

wu1g119 opened this issue Sep 17, 2022 · 3 comments
Labels
bug Something isn't working fixed
Milestone

Comments

@wu1g119
Copy link

wu1g119 commented Sep 17, 2022

问题描述

jdk17 运行项目 报错 Java: module not found: com.alibaba.fastjson2

环境信息

  • OS信息: [e.g.:Windows 11 专业版 Insider Preview Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz 3.60 GHz ]
  • JDK信息: [e.g.:corretto-17.0.4.1]
  • 版本信息:[e.g.:Fastjson2 2.0.14]

重现步骤

  1. module-info.java
  requires com.alibaba.fastjson2;
  1. 测试类
   public static void main(String[] args) {
       System.out.println("Hello world!");
       JSONObject jsonObject = JSON.parseObject("{\"isRemember\":false,\"account\":\"234\",\"password\":\"234\"}");
       System.out.println(jsonObject);
   }
  1. 出现 ... 错误
  java: 找不到模块: com.alibaba.fastjson2
@wu1g119 wu1g119 added the bug Something isn't working label Sep 17, 2022
@wenshao wenshao added this to the 2.0.15 milestone Sep 17, 2022
@wenshao
Copy link
Member

wenshao commented Sep 17, 2022

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.15-SNAPSHOT/
问题已修复,请帮忙用2.0.15-SNAPSHOT验证,2.0.15版本预计在10月7日前发布

wenshao added a commit that referenced this issue Sep 17, 2022
@wenshao wenshao added the fixed label Sep 17, 2022
@wu1g119
Copy link
Author

wu1g119 commented Sep 18, 2022

fastjson2-2.0.15-20220917.213214-2 经验证已修复该问题

@wu1g119 wu1g119 closed this as completed Sep 18, 2022
wenshao added a commit that referenced this issue Sep 18, 2022
@wenshao
Copy link
Member

wenshao commented Oct 5, 2022

https://github.com/alibaba/fastjson2/releases/tag/2.0.15
2.0.15版本已发布,请用新版本

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

2 participants