{"record":{"id":"a23e8a5225eb9b46","repo":"pxb1988/dex2jar","slug":"not-support-type","errorCode":null,"errorMessage":"not support type ","messagePattern":"not support type ","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"dex-tools/src/main/java/com/googlecode/dex2jar/tools/DecryptStringCmd.java","lineNumber":898,"sourceCode":"                            break;\n                        case \"int\":\n                            sb.append(\"I\");\n                            break;\n                        case \"long\":\n                            sb.append(\"J\");\n                            break;\n                        case \"float\":\n                            sb.append(\"F\");\n                            break;\n                        case \"double\":\n                            sb.append(\"D\");\n                            break;\n                        case \"string\":\n                            sb.append(\"Ljava/lang/String;\");\n                            break;\n\n                        default:\n                            throw new RuntimeException(\"not support type \" + type_list[i] + \" on -t/--arg-types\");\n                    }\n                }\n                methodConfigs.add(this.build(\"L\" + methodOwner.replace('.', '/') + \";->\" + methodName + \"(\"\n                        + sb + \")Ljava/lang/String;\"));\n            } else {\n                methodConfigs.add(this.build(\"L\" + methodOwner.replace('.', '/') + \";->\" + methodName + \"(Ljava/lang/String;)Ljava/lang/String;\"));\n            }\n        }\n        return methodConfigs;\n    }\n\n    /**\n     * fix for issue 216, travel all the parent of class and use getDeclaredMethod to find methods\n     */\n    private Method findAnyMethodMatch(Class<?> clz, String name, Class<?>[] classes) {\n        try {\n            Method m = clz.getDeclaredMethod(name, classes);\n            if (m != null) {","sourceCodeStart":880,"sourceCodeEnd":916,"githubUrl":"https://github.com/pxb1988/dex2jar/blob/b5bda4fb4935ae8b3869b422454ae3b3896c7bc1/dex-tools/src/main/java/com/googlecode/dex2jar/tools/DecryptStringCmd.java#L880-L916","documentation":"When -t/--arg-types is supplied, DecryptStringCmd maps each type token to a JVM descriptor; only `string` (and similar supported tokens like int/long types above it) are recognized. An unknown token hits the default branch and throws this RuntimeException.","triggerScenarios":"Passing an unrecognized token in -t, e.g. `-t string,foo` where `foo` isn't one of the switch cases in the arg-types parsing loop.","commonSituations":"Typos in type names, using Java names like `String` instead of the tool's tokens, or using types the decrypt helper doesn't take.","solutions":["Use only supported tokens (e.g. `string`, `int`, `long`, `double`, `boolean` per the switch cases)","Check the tool's help for the exact -t token spelling","Omit -t entirely to use the default (Ljava/lang/String;) signature"],"exampleFix":"// before\nd2j-decrypt-string -t string,Object a.jar\n// after\nd2j-decrypt-string -t string a.jar","handlingStrategy":"validation","validationCode":"Set<String> allowed = Set.of(\"string\", \"int\", \"long\", \"double\", \"boolean\");\nfor (String t : argTypes.split(\",\")) if (!allowed.contains(t)) throw new IllegalArgumentException(\"bad -t token: \" + t);","typeGuard":null,"tryCatchPattern":"try { DecryptStringCmd.main(args); } catch (RuntimeException e) { if (e.getMessage().startsWith(\"not support type\")) { System.err.println(\"Use supported -t tokens only\"); } else throw e; }","preventionTips":["Use only tokens documented in the tool's help for -t","Lowercase tokens exactly as the switch cases expect","Omit -t when the decryptor takes only Strings"],"tags":["cli","enum-value","argument-validation"],"backgroundTag":"invalid-enum-value","analyzedSha":"b5bda4fb4935ae8b3869b422454ae3b3896c7bc1","analyzedAt":"2026-09-08T00:44:01.258Z","contentChangedAt":"2026-09-08T00:44:01.258Z","schemaVersion":2},"datasetVersion":"2026-09-16T09:17:16.951Z"}