nitj: avoid calls to abstract methods
authorAlexandre Terrasa <alexandre@moz-code.org>
Mon, 13 Jul 2015 21:08:52 +0000 (17:08 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Tue, 21 Jul 2015 21:23:21 +0000 (17:23 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/compiler/java_compiler.nit

index 062ece7..85613cf 100644 (file)
@@ -1054,8 +1054,7 @@ redef class MMethodDef
                var node = modelbuilder.mpropdef2node(self)
 
                if is_abstract then
-                       # TODO compile abstract
-                       v.info("NOT YET IMPLEMENTED call to abstract method")
+                       v.add_abort("Abstract method `{mproperty.name}` called on `\"  + {selfvar}.rtclass.class_name +\"`")
                        v.add("return null;")
                        return
                end