You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Abbas Gadhia (Jira)" <ji...@apache.org> on 2021/11/03 10:52:00 UTC
[jira] [Created] (GROOVY-10341) "super" invocations of abstract
methods should be caught at compile time with static compilation enabled
Abbas Gadhia created GROOVY-10341:
-------------------------------------
Summary: "super" invocations of abstract methods should be caught at compile time with static compilation enabled
Key: GROOVY-10341
URL: https://issues.apache.org/jira/browse/GROOVY-10341
Project: Groovy
Issue Type: Improvement
Components: Compiler
Affects Versions: 2.5.4
Reporter: Abbas Gadhia
Attachments: bugs.tar.gz
When super.baseMethod() is invoked from a derived class, and if the baseMethod is abstract, the compiler does not complain and we get a
{code:java}
Exception in thread "main" java.lang.AbstractMethodError
{code}
despite CompileStatic
Code attached
--
This message was sent by Atlassian Jira
(v8.3.4#803005)