Abnaxos / meldioc

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

Mounting interfaces produces bad code #95

Closed Abnaxos closed 2 years ago

Abnaxos commented 3 years ago

Attempting to mount an interface produces an implementation in the shell that extends the interface instead of implementing it.

Also, doing this is most probably a mistake. Consider a warning about it.

Interestingly, I found a test case for this, and there's issue #38. So, this should be fixed. The specific case where I ran into this was when I was using an unnamed mount (i.e. by attribute on Configuration). Investigate.

Abnaxos commented 2 years ago

See test case c.codegen.mountInterface: fixed.