I am sorry if it was discussed before, but i have a doubt about
generics support on Groovy.
I have a Groovy class implementing a Java interface, in fact a Generic
Java Interface:
Java interface:
public interface Entity<T> {
T getId();
}
Groovy class:
class Car implements Entity<Long> {
Long id;
}
While the Entity interface wasn't generic (Object getId() signature),
the Groovy class was able to percept the auto-generated getter is
implementing the interface method.
Although, when code looks like the one i posted i have this error:
"Groovy:Can't have an abstract method in a non-abstract class.
The class 'br.com.greiner.webcasa.Car' must be declared abstract or
the method 'java.lang.Object getId()' must be implemented."
I am using 1.7.3 version.
Is this an expected behavior? Is there any plan when we should see
this limitation fixed?
Thank you!
Luciano Greiner
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Can you point me how to report this issue? I don't have access to
Jira, and i think it's needed.
Thank you
Luciano Greiner