Skip to content
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

editor has spurious "abstract method" error on trait methods #122

Closed
chrylis opened this issue Jun 14, 2015 · 1 comment
Closed

editor has spurious "abstract method" error on trait methods #122

chrylis opened this issue Jun 14, 2015 · 1 comment

Comments

@chrylis
Copy link

chrylis commented Jun 14, 2015

I have a trait Auditable with a method void publish() that is "implemented" by an abstract class. The concrete subclass has an error marker saying

Can't have an abstract method in a non-abstract class: [...] or the method 'void publish()' must be implemented.

This looks to be a bug with the Eclipse index where it confuses the fact that traits look like Java interfaces (no implementation) with their having the code added at compile-time. The classes actually compile fine, and I don't get an adornment in Package Explorer.

@levsa
Copy link

levsa commented Sep 27, 2016

I have the same problem. No errors in Package Explorer, or among in the "Problems" views, but an error is shown in the editor. QuickLogin and WaitForAjax are traits, the method "waitForAjax" is only declared in the trait WaitForAjax.

image

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants