Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix a missed case when integrating based on a boolean parameter

  • Loading branch information...
commit 97252745ad226899ab48f61b54648c7c4d78956e 1 parent aa3c914
@olabini authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/ikj/main/ioke/lang/java/JavaIntegration.java
View
3  src/ikj/main/ioke/lang/java/JavaIntegration.java
@@ -179,6 +179,9 @@ private static void loadParameterWithConversion(MethodVisitor mv, Class paramete
} else if(parameterType == Double.TYPE) {
mv.visitVarInsn(DLOAD, position);
mv.visitMethodInsn(INVOKESTATIC, "java/lang/Double", "valueOf", "(D)Ljava/lang/Double;");
+ } else if(parameterType == Boolean.TYPE) {
+ mv.visitVarInsn(ILOAD, position);
+ mv.visitMethodInsn(INVOKESTATIC, "java/lang/Boolean", "valueOf", "(Z)Ljava/lang/Boolean;");
} else {
mv.visitVarInsn(ALOAD, position);
}
Please sign in to comment.
Something went wrong with that request. Please try again.