From 5f151b90e87cefb7b86a4d4ff7225f4288b3f4c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Wed, 29 Jul 2015 05:40:28 -0400 Subject: [PATCH] contrib/jwrapper: skip all vararg types in code generation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- contrib/jwrapper/src/code_generator.nit | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/jwrapper/src/code_generator.nit b/contrib/jwrapper/src/code_generator.nit index aeae678..75fc5e8 100644 --- a/contrib/jwrapper/src/code_generator.nit +++ b/contrib/jwrapper/src/code_generator.nit @@ -174,6 +174,7 @@ class CodeGenerator var nit_type = model.java_to_nit_type(jparam) if not nit_type.is_known and comment_unknown_types then c = "#" + if jparam.is_vararg then c = "#" java_args.add "{jparam.param_cast}{nit_id}{nit_id_no}" nit_params.add "{nit_id}{nit_id_no}: {nit_type}" @@ -196,6 +197,7 @@ class CodeGenerator return_type = model.java_to_nit_type(java_return_type) if not return_type.is_known and comment_unknown_types then c = "#" + if java_return_type.is_vararg then c = "#" nit_signature.add ": " + return_type.to_s end @@ -237,6 +239,7 @@ class CodeGenerator var c = "" if not nit_type.is_known and comment_unknown_types then c = "#" + if java_type.is_vararg then c = "#" var recv if attribute.is_static then @@ -282,6 +285,7 @@ class CodeGenerator param_id = param_id.successor(1) if not nit_type.is_known and comment_unknown_types then c = "#" + if java_type.is_vararg then c = "#" end nit_params_s = "(" + nit_params.join(", ") + ")" -- 1.7.9.5