Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Inheritance between @DeclareMixin woven classes

I've done some verification, during the aspect compilation the errors raised
are related for all the abstract methods that have as returning type a
generics.
For instance:
  public Collection<String> getDependencies();

gave me
[ERROR] can't override java.util.Collection
a.package.AnInteface.getDependencies() with java.util.Collection
another.package.with.a.wannabe.woven.Object.getDependencies() return types
don't match
.

Luckily in my scenario I could change without problems. After changing
Collection<String> to String[] the error disappear and the class is woven
correctly.

I'm guessing that my issue can be a bug or related with type erasure am I
wrong?

Bye,
Dario.



--
View this message in context: http://aspectj.2085585.n4.nabble.com/Inheritance-between-DeclareMixin-woven-classes-tp4651003p4651004.html
Sent from the AspectJ - users mailing list archive at Nabble.com.


Back to the top