Re: AspectJ: solution to Java's repetitiveness?



Andreas Leitgeb wrote:

When I think of how Java and C++ treat differently the "range" of a public/protected/private keyword, I'd be
very much surprised by one instance of an Annotation being ever defined to be applied to each of a group of
items.


I think there's other reasons why that would never happen, including that braces at the class level look a lot like static initializer blocks, and the language (or the compiler) would have to be extended to add them.

Still I think it would be worthwhile to add some kind of "annotated block" at the class and the method level.
.