Skip to content

Commit

Permalink
fix bug : character convert Object type to primate type
Browse files Browse the repository at this point in the history
Signed-off-by: hedex <hedexmail@gmail.com>
  • Loading branch information
hedex committed Mar 23, 2019
1 parent 6764a48 commit 21fa55b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 21fa55b

Please sign in to comment.