ffi/java: fix support of Boolean types in JNI signature format
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 6 May 2014 14:55:22 +0000 (10:55 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Tue, 6 May 2014 14:55:51 +0000 (10:55 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/common_ffi/java.nit

index 45b5570..231527c 100644 (file)
@@ -493,7 +493,7 @@ redef class MClassType
        do
                var ftype = mclass.ftype
                if ftype isa ForeignJavaType then return "Object"
-               if mclass.name == "Bool" then return "Bool"
+               if mclass.name == "Bool" then return "Boolean"
                if mclass.name == "Char" then return "Char"
                if mclass.name == "Int" then return "Int"
                if mclass.name == "Float" then return "Double"