diff --git a/gradle-plugin/src/main/groovy/robust/gradle/plugin/asm/RobustAsmUtils.java b/gradle-plugin/src/main/groovy/robust/gradle/plugin/asm/RobustAsmUtils.java index 206c7d53..bcc69f5e 100644 --- a/gradle-plugin/src/main/groovy/robust/gradle/plugin/asm/RobustAsmUtils.java +++ b/gradle-plugin/src/main/groovy/robust/gradle/plugin/asm/RobustAsmUtils.java @@ -346,7 +346,7 @@ private static boolean castPrimateToObj(MethodVisitor mv, String typeS) { } if ("C".equals(typeS)) { mv.visitTypeInsn(Opcodes.CHECKCAST, "java/lang/Character");//强制转化类型 - mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/lang/Character", "intValue", "()C"); + mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/lang/Character", "charValue", "()C"); return true; } if ("S".equals(typeS)) {