contrib/jwrapper: comment out all primitive arrays
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 23 Jul 2015 21:52:31 +0000 (17:52 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 24 Jul 2015 16:35:12 +0000 (12:35 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/jwrapper/src/code_generator.nit

index 0d93ffa..939c160 100644 (file)
@@ -152,6 +152,7 @@ class CodeGenerator
                        var nit_type = model.java_to_nit_type(jparam)
 
                        if not nit_type.is_known then comment = "#"
+                       if jparam.is_primitive_array then comment = "#"
 
                        var cast = jparam.param_cast
 
@@ -187,6 +188,7 @@ class CodeGenerator
                        return_type = model.java_to_nit_type(jreturn_type)
 
                        if not return_type.is_known then comment = "#"
+                       if jreturn_type.is_primitive_array then comment = "#"
 
                        nit_signature.add ": {return_type} "
                end
@@ -217,6 +219,7 @@ class CodeGenerator
 
                var c = ""
                if not nit_type.is_known then c = "#"
+               if java_type.is_primitive_array then c = "#"
 
                file_out.write """
        # Java getter: {{{java_class}}}.{{{java_id}}}
@@ -252,6 +255,7 @@ class CodeGenerator
                                param_id = param_id.successor(1)
 
                                if not nit_type.is_known then c = "#"
+                               if java_type.is_primitive_array then c = "#"
                        end
 
                        nit_params_s = "(" + nit_params.join(", ") + ")"