You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在jdkl17种使用 fastjson2 (2.0.45),采用模块化的方式引入,启动项目报错如下 java.lang.LayerInstantiationException: Package com.alibaba.fastjson2.support in both module com.alibaba.fastjson2 and module com.alibaba.fastjson2.extension
环境信息
OS信息: mac os Monterey Apple M1 16G
JDK信息:jdk-17.0.2
版本信息:Fastjson2 2.0.45
重现步骤
1.在jdkl17种使用 fastjson2 (2.0.45),采用模块化的方式引入
requires transitive fastjson;
requires transitive com.alibaba.fastjson2;
requires transitive com.alibaba.fastjson2.extension;
```,
2.构建main函数启动项目报错如下
`java.lang.LayerInstantiationException: Package com.alibaba.fastjson2.support in both module com.alibaba.fastjson2 and module com.alibaba.fastjson2.extension`
### 期待的正确结果
不应该出现该报错,
### 相关日志输出
Error occurred during initialization of boot layer
java.lang.LayerInstantiationException: Package com.alibaba.fastjson2.support in both module com.alibaba.fastjson2 and module com.alibaba.fastjson2.extension
Process finished with exit code 1
#### 附加信息
无
The text was updated successfully, but these errors were encountered:
问题描述
在jdkl17种使用 fastjson2 (2.0.45),采用模块化的方式引入,启动项目报错如下
java.lang.LayerInstantiationException: Package com.alibaba.fastjson2.support in both module com.alibaba.fastjson2 and module com.alibaba.fastjson2.extension
环境信息
重现步骤
1.在jdkl17种使用 fastjson2 (2.0.45),采用模块化的方式引入
Error occurred during initialization of boot layer
java.lang.LayerInstantiationException: Package com.alibaba.fastjson2.support in both module com.alibaba.fastjson2 and module com.alibaba.fastjson2.extension
Process finished with exit code 1
The text was updated successfully, but these errors were encountered: