Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Interfaces and pointcuts declarations in Java 8/AspectJ

Hi Andy and all,

I was wondering that now AspectJ should support pointcut declarations in interfaces. New features in Java 8 include static method declarations or default method declarations in an interface. Hence, I believe to make the AspectJ language more orthogonal and symmetric, we should consider to have pointcut declarations in aspects, classes and also interfaces.

I think that one design decision that is forbidding pointcuts on interfaces is that before we couldn't write methods with bodies in interfaces, thus avoiding the use of the main design (specially in @AspectJ where we need method bodies for If pointcuts)...

What you think? This is just an advice (not AspectJ advice :-) to make the AspectJ sync with Java.

--
...............................................................................................................................
Henrique Rebelo
http://www.cin.ufpe.br/~hemr
Informatics Center, UFPE, Brazil

Back to the top