{"record":{"id":"f4a93b9f2585b0d1","repo":"skylot/jadx","slug":"unexpected-value-tag","errorCode":null,"errorMessage":"Unexpected value: ${tag}","messagePattern":"Unexpected value: (.+?)","errorType":"exception","errorClass":"SmaliDebuggerException","httpStatus":null,"severity":"error","filePath":"jadx-gui/src/main/java/jadx/gui/device/debugger/RuntimeType.java","lineNumber":77,"sourceCode":"\t\t\t\treturn RuntimeType.LONG;\n\t\t\tcase JDWP.Tag.SHORT:\n\t\t\t\treturn RuntimeType.SHORT;\n\t\t\tcase JDWP.Tag.VOID:\n\t\t\t\treturn RuntimeType.VOID;\n\t\t\tcase JDWP.Tag.BOOLEAN:\n\t\t\t\treturn RuntimeType.BOOLEAN;\n\t\t\tcase JDWP.Tag.STRING:\n\t\t\t\treturn RuntimeType.STRING;\n\t\t\tcase JDWP.Tag.THREAD:\n\t\t\t\treturn RuntimeType.THREAD;\n\t\t\tcase JDWP.Tag.THREAD_GROUP:\n\t\t\t\treturn RuntimeType.THREAD_GROUP;\n\t\t\tcase JDWP.Tag.CLASS_LOADER:\n\t\t\t\treturn RuntimeType.CLASS_LOADER;\n\t\t\tcase JDWP.Tag.CLASS_OBJECT:\n\t\t\t\treturn RuntimeType.CLASS_OBJECT;\n\t\t\tdefault:\n\t\t\t\tthrow new SmaliDebuggerException(\"Unexpected value: \" + tag);\n\t\t}\n\t}\n}\n","sourceCodeStart":59,"sourceCodeEnd":81,"githubUrl":"https://github.com/skylot/jadx/blob/e738a26571d02919f01df40de93bc9a44dee4e18/jadx-gui/src/main/java/jadx/gui/device/debugger/RuntimeType.java#L59-L81","documentation":"Error \"Unexpected value: ${tag}\" thrown in skylot/jadx.","triggerScenarios":"Thrown at jadx-gui/src/main/java/jadx/gui/device/debugger/RuntimeType.java:77 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Validate the JDWP tag byte against the known tag constants before the switch, and report the raw tag value when it is unsupported.","Treat unknown tags as a protocol mismatch: check the target VM's JDWP version and abort the operation with a clear message instead of a generic 'Unexpected value'."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e738a26571d02919f01df40de93bc9a44dee4e18","analyzedAt":"2026-08-14T00:10:24.238Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}