blob: f9d346a56d008ec6316eec09adc4f3c0624b673a [file] [log] [blame]
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Chapter 11. Other Changes in AspectJ 5</title><link rel="stylesheet" href="aspectj-docs.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.44"><link rel="home" href="index.html" title="The AspectJTM 5 Development Kit Developer's Notebook"><link rel="up" href="index.html" title="The AspectJTM 5 Development Kit Developer's Notebook"><link rel="previous" href="reflection.html" title="Chapter 10. New Reflection Interfaces"><link rel="next" href="declare-soft.html" title="Declare Soft"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 11. Other Changes in AspectJ 5</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="reflection.html">Prev</a>&nbsp;</td><th width="60%" align="center">&nbsp;</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="declare-soft.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><h2 class="title"><a name="miscellaneous"></a>Chapter 11. Other Changes in AspectJ 5</h2></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><a href="miscellaneous.html#d0e4061">Pointcuts</a></dt><dd><dl><dt><a href="miscellaneous.html#binding-of-formals">Binding of formals</a></dt><dt><a href="miscellaneous.html#additional-lint-warnings">Additional lint warnings</a></dt></dl></dd><dt><a href="declare-soft.html">Declare Soft</a></dt><dt><a href="ch11s03.html">Tools</a></dt><dd><dl><dt><a href="ch11s03.html#aspectpath">Aspectpath</a></dt></dl></dd></dl></div><div class="sect1"><a name="d0e4061"></a><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="d0e4061"></a>Pointcuts</h2></div></div><div class="sect2"><a name="binding-of-formals"></a><div class="titlepage"><div><h3 class="title"><a name="binding-of-formals"></a>Binding of formals</h3></div></div><p>
AspectJ 5 is more liberal than AspectJ 1.2.1 in accepting pointcut expressions
that bind context variables in more than one location. For example, AspectJ
1.2.1 does not allow:
</p><pre class="programlisting">
pointcut foo(Foo foo) : (execution(* *(..)) &amp;&amp; this(foo) ) ||
(set(* *) &amp;&amp; target(foo));
</pre><p>
whereas this expression is permitted in AspectJ 5. Each context variable must
be bound exactly once in each branch of a disjunction, and the disjunctive branches
must be mutually exclusive. In the above example for instance, no join point
can be both an execution join point and a set join point so the two branches
are mutually exclusive.
</p></div><div class="sect2"><a name="additional-lint-warnings"></a><div class="titlepage"><div><h3 class="title"><a name="additional-lint-warnings"></a>Additional lint warnings</h3></div></div><p>
Discuss detection of common errors -&gt; warning/error, eg. conjunction of more than one
kind of join point. Differing numbers of args in method signature / args / @args /
@parameters.
</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="reflection.html">Prev</a>&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="declare-soft.html">Next</a></td></tr><tr><td width="40%" align="left">Chapter 10. New Reflection Interfaces&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="index.html">Up</a></td><td width="40%" align="right">&nbsp;Declare Soft</td></tr></table></div></body></html>