-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Groovy-eclipse sees Traits as interfaces and urges to implement its methods #1267
Comments
Can you provide a simple and complete example? Traits are supported, although there are some rough edges since they cannot be fully represented in the Java model. |
the class SubClass.groovy demonstrates the behaviour |
I think this error is in the editor only. Can you confirm that it does not show up in the Problems view and you can compile and test your project successfully? |
Yes, it's in editor only, the errors do not appear in "Problems" |
* don't add abstract modifier to private interface method
ready to test |
Can you update your sample project to demonstrate? |
here you go: |
ready to test |
I don't get any new snapshots from https://dist.springsource.org/snapshot/GRECLIPSE/e4.19 now |
You may need to restart eclipse for it to reload the update site metadata. |
it took a while to upgrade eclipse and reinstall Groovy feature 4.19 -> 4.20, but now I don't get any warnings about traits. |
Cheers. And thanks for filing an issue. |
I have a super-class implementing 2 traits:
and it's sub-class:
The Eclipse of
Version: 2021-03 (4.19.0)
withEclipse Groovy Development Tools 4.2.0.v202106101948-e2103
complains in a sub-class about not implemented methods and as quick fixes suggests to either make the class abstract or implement the methods:The traits must supported also in sub-classes as they are compiled by Groovy compiler (ver. 3) just fine.
The text was updated successfully, but these errors were encountered: