{"record":{"id":"7799dca5850be8e8","repo":"HMCL-dev/HMCL","slug":"incorrect-manifest-type-actual","errorCode":null,"errorMessage":"Incorrect manifest type, actual=","messagePattern":"Incorrect manifest type, actual=","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"HMCLCore/src/main/java/org/jackhuang/hmcl/modpack/mcbbs/McbbsModpackProvider.java","lineNumber":61,"sourceCode":"@Override\npublic void injectLaunchOptions(String modpackConfigurationJson, LaunchOptions.Builder builder) {\n    ModpackConfiguration<McbbsModpackManifest> config = JsonUtils.GSON.fromJson(modpackConfigurationJson, ModpackConfiguration.typeOf(McbbsModpackManifest.class));\n\n    if (!getName().equals(config.getType())) {\n        throw new IllegalArgumentException(\"Incorrect manifest type, actual=\" + config.getType() + \", expected=\" + getName());\n    }\n\n    config.getManifest().injectLaunchOptions(builder);\n}","sourceCodeStart":43,"sourceCodeEnd":79,"githubUrl":"https://github.com/HMCL-dev/HMCL/blob/24702dc5a0214034f4c27166d5fd30cad08cec19/HMCLCore/src/main/java/org/jackhuang/hmcl/modpack/mcbbs/McbbsModpackProvider.java#L43-L79","documentation":"Guard in injectLaunchOptions: the stored modpack configuration JSON declares a provider type different from 'mcbbs', so the configuration does not belong to an MCBBS modpack and applying its launch options would be incorrect.","triggerScenarios":"Thrown at HMCLCore/src/main/java/org/jackhuang/hmcl/modpack/mcbbs/McbbsModpackProvider.java:61 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the launch-options injection is invoked with the configuration of an MCBBS modpack instance","Reinstall or repair the instance so its modpack configuration matches the MCBBS provider"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24702dc5a0214034f4c27166d5fd30cad08cec19","analyzedAt":"2026-09-10T12:36:46.680Z","contentChangedAt":"2026-09-10T12:36:46.680Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}