Easier to explain with simplified code. I have the following interface
interface FooInterface{
public void foo()
}
I have the following JAVA parent class from a library (notice the final keyword):
class Parent {
public final foo()
}
Finally, the child class:
class Child extends Parent implement FooInterface{
}
This results in compilation error that I cannot override the final parent method in the child class, which technically I am not. I figure this is a groovyism I'm not familiar with. So my question are:
- Why does the compiler think I'm overriding?
- How can I get this to compile?