Abnaxos / meldioc

A prototype of an IoC (Inversion of Control) library for Java
MIT License
5 stars 1 forks source link

Make features extending/implementing non-features an error or warning #80

Closed Abnaxos closed 3 years ago

Abnaxos commented 4 years ago

In practice, it shows that implementing a non-feature interface or extending a non-feature class is a common mistake, that's quite confusing. Make this an error, so the processor can point the problem out more effectively.

Now, "importing" foreign interfaces into a feature may be a useful strategy to support integration with foreign code. This should definitely be supported, but make this an explicit act by adding a @Feature.Import annotation, which suppresses the error.

Abnaxos commented 3 years ago

Duplicate of #55

Abnaxos commented 3 years ago

It's a warning now. Change it to an error for 0.2.

Abnaxos commented 3 years ago

Oops, reopened the wrong issue