Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] AspectJ 1.6.7.a released

Hot on the heels of 1.6.7 we have 1.6.7.a which includes one
additional fix for bug 298786:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=298786

It is available from the usual places:
http://www.eclipse.org/aspectj/downloads.php

To give you some background on whether you need to upgrade if you
already have 1.6.7: The bug relates to problems with load time weaving
if using a particular combination of weaver includes/excludes.  To
trigger it you must define an exclude pattern that is not suitable for
optimization and at least 2 include patterns, one that is suitable for
optimization and one that is not.  For example:

  <weaver options="-debug">
    <include within="*"/>
    <include within="*wibble*"/>
    <exclude within="*Funk*y*"/>
  </weaver>

(these could be across multiple aop.xml files, I'm just showing them
in one weaver section here).

Here the first include (*) is suitable for optimization (by which I
mean matching without calling the weaver to fully load the type).  The
second include is not suitable for optimization.  The exclude is not
suitable for optimization.  When the bug triggers the fact that an
include="*" was specified is ignored and types will not get woven when
they should be.

What kinds of pattern are optimized for now?  They are described here:
http://andrewclement.blogspot.com/2009/12/aspectj-167-and-faster-load-time.html

Thanks to William Louth for working with me to get to the bottom of it !

cheers,
Andy


Back to the top