-
Notifications
You must be signed in to change notification settings - Fork 811
Closed
Labels
Description
问题描述 | Bug Description
- 下载AppliedE到随便一个实例中,比如
appliede-0.14.3.jar - 提示“加载器不匹配”
我在IDEA里打断点看了看,发现这一行会出错:
HMCL/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/modinfo/ForgeNewModMetadata.java
Line 280 in 7dfeebf
| List<HashMap<String, Object>> dependencies = toml.getList("dependencies." + modID); |
"java.lang.ClassCastException: class java.util.ArrayList cannot be cast to class java.util.Map (java.util.ArrayList and java.util.Map are in module java.base of loader 'bootstrap')"
大致的出错过程:
- AppliedE的mod.toml里没有
[[dependencies.appliede]],只有[[dependencies]],dependencies这个key对应的值是一个list - toml寻找结果时先按照
dependencies.appliede为key查找,没找到 dependencies.appliede被分割成两个key:dependencies和appliede- 按照第一个key找到了一个list。为了再通过第二个key查找,toml会将这个结果强转成map
- list不能强转成map,于是ClassCastException
启动器崩溃报告 / 启动器日志文件 | Launcher Crash Report / Launcher Log File
注:在日志文件里我什么异常也没看见,建议直接跳过