nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73f02d4
)
nitj: avoid calls to abstract methods
author
Alexandre Terrasa
<alexandre@moz-code.org>
Mon, 13 Jul 2015 21:08:52 +0000
(17:08 -0400)
committer
Alexandre 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
patch
|
blob
|
history
diff --git
a/src/compiler/java_compiler.nit
b/src/compiler/java_compiler.nit
index
062ece7
..
85613cf
100644
(file)
--- a/
src/compiler/java_compiler.nit
+++ b/
src/compiler/java_compiler.nit
@@
-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