X-Git-Url: http://nitlanguage.org diff --git a/src/common_ffi/java.nit b/src/common_ffi/java.nit index 68ba1e9..f6e44f7 100644 --- a/src/common_ffi/java.nit +++ b/src/common_ffi/java.nit @@ -465,7 +465,7 @@ redef class MClassType do var ftype = mclass.ftype if ftype isa ForeignJavaType then return ftype.java_type. - replace('/', ".").replace('$', ".").replace(' ', "") + replace('/', ".").replace('$', ".").replace(' ', "").replace('\n',"") if mclass.name == "Bool" then return "boolean" if mclass.name == "Char" then return "char" if mclass.name == "Int" then return "int" @@ -487,7 +487,7 @@ redef class MClassType redef fun jni_format do var ftype = mclass.ftype - if ftype isa ForeignJavaType then return "L{ftype.java_type.replace('.', "/").replace(' ', "")};" + if ftype isa ForeignJavaType then return "L{ftype.java_type.replace('.', "/").replace(' ', "").replace('\n', "")};" if mclass.name == "Bool" then return "Z" if mclass.name == "Char" then return "C" if mclass.name == "Int" then return "I"