Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] Fwd: metacomments and aspectj - need suggestion

Hello Hermann
 
I am doing my research in software testing on various levers of abstraction. I'm know about maintenance problems but my work relies on 'code is model'. I think I can provide dinamic testing of peices of marked code by realize this aspectJ extension.
ps. It is only the research.

2009/10/24 Ichthyostega <prg@xxxxxxxxxxxxxxx>
> 2009/10/23 Ichthyostega <prg@xxxxxxxxxxxxxxx <mailto:prg@xxxxxxxxxxxxxxx>>
> But I may be wrong, and thus I'm curious what could prevent you from building
> on a set of special annotations?

Sergey Staroletov schrieb:
> as I know, annotations is only for methods, isn't it?
...of course (and besides that, for classes and parameters too).
But that doesn't answer my question, just makes it more clear.

What prevents you from building the feature you're after on
method level, and thus use the facilities of the language
(including AspectJ, which is very good on working with
annotations btw)?

I'm asking, as said, because I'm puzzled about the use case, where
going down to single statement level with any cross-cutting mechanism
might be of benefit?

I could imagine performance measurements, but micro-optimising single
lines to my experience always created maintenance problems later on

I could imagine security or transactional behaviour, but would you
really rely on such a fragile construct as a comment is for such
mission critical concerns? The same argument holds for reasoning
about correctness, pre- and post conditions.


You see, probably you're looking after a use case which is quite
different of the common situations, and that's what makes me
curious... ;-)

Greetings,
Hermann V.


_______________________________________________
aspectj-dev mailing list
aspectj-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-dev



--
С уважением, Старолетов Сергей

Back to the top