{"record":{"id":"408cb2cf666686b4","repo":"pxb1988/dex2jar","slug":"i-have-trouble-to-auto-convert-from","errorCode":null,"errorMessage":"i have trouble to auto convert from ","messagePattern":"i have trouble to auto convert from ","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"dex-translator/src/main/java/com/googlecode/d2j/converter/IR2JConverter.java","lineNumber":1074,"sourceCode":"            break;\r\n\r\n\r\n        case \"Ljava/lang/Object;J\":\r\n            asm.visitTypeInsn(CHECKCAST, \"java/lang/Long\");\r\n            // pass through\r\n        case \"Ljava/lang/Long;J\":\r\n            asm.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/Long\", \"longValue\", \"()J\", false);\r\n            break;\r\n\r\n        case \"Ljava/lang/Object;D\":\r\n            asm.visitTypeInsn(CHECKCAST, \"java/lang/Double\");\r\n            // pass through\r\n        case \"Ljava/lang/Double;D\":\r\n            asm.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/Double\", \"doubleValue\", \"()D\", false);\r\n            break;\r\n\r\n        default:\r\n            throw new RuntimeException(\"i have trouble to auto convert from \" + provideType + \" to \" + expectedType + \" currently\");\r\n        }\r\n    }\r\n\r\n    private void reBuildE1Expression(E1Expr e1, MethodVisitor asm) {\r\n        accept(e1.getOp(), asm);\r\n        switch (e1.vt) {\r\n        case STATIC_FIELD: {\r\n            FieldExpr fe = (FieldExpr) e1;\r\n            asm.visitFieldInsn(GETSTATIC, toInternal(fe.owner), fe.name, fe.type);\r\n            break;\r\n        }\r\n        case FIELD: {\r\n            FieldExpr fe = (FieldExpr) e1;\r\n            asm.visitFieldInsn(GETFIELD, toInternal(fe.owner), fe.name, fe.type);\r\n            break;\r\n        }\r\n        case NEW_ARRAY: {\r\n            TypeExpr te = (TypeExpr) e1;\r","sourceCodeStart":1056,"sourceCodeEnd":1092,"githubUrl":"https://github.com/pxb1988/dex2jar/blob/b5bda4fb4935ae8b3869b422454ae3b3896c7bc1/dex-translator/src/main/java/com/googlecode/d2j/converter/IR2JConverter.java#L1056-L1092","documentation":"Reached the default branch of IR2JConverter's auto-unboxing/conversion helper (around line 1074): the tool tries to insert the right cast+xxxValue() call to convert a boxed or typed value to a requested primitive, and the (from-type, to-type) pair is not one of the enumerated combinations (Object/Integer/I, Object/Long/J, Object/Double/D, etc.). The message appends the source type descriptor. It is a converter limitation on an unexpected type pair.","triggerScenarios":"Thrown at dex-translator/src/main/java/com/googlecode/d2j/converter/IR2JConverter.java:1074 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Upgrade dex2jar — broader boxed-type conversion pairs have been added across releases","Report the type pair from the message plus the input dex so the conversion table can be extended","Exclude the affected method/class to let the rest of the translation proceed"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"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"}