From c90c01c9824f0714fd100c91bcdb72808bac3d72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Wed, 29 Jul 2015 08:24:15 -0400 Subject: [PATCH] contrib/jwrapper: skip wrapping Java classes with invalid names 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/jwrapper/src/code_generator.nit b/contrib/jwrapper/src/code_generator.nit index 466dfad..eed951a 100644 --- a/contrib/jwrapper/src/code_generator.nit +++ b/contrib/jwrapper/src/code_generator.nit @@ -69,6 +69,9 @@ class CodeGenerator # Skip anonymous classes if jclass.class_type.is_anonymous then continue + # Skip classes with an invalid name at the Java language level + if jclass.class_type.extern_equivalent.has("-") then continue + generate_class_header(jclass.class_type) for id, signatures in jclass.methods do -- 1.7.9.5