Announcement Announcement Module
Collapse
No announcement yet.
Bugreport: AspectJ LTW behaves incorrectly in tcServer Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bugreport: AspectJ LTW behaves incorrectly in tcServer

    Hi all,

    Dunno where to file a bugreport, but it seems that I found a bug somewhere inside tcServer.

    Please look here: http://forum.springsource.org/showthread.php?t=99778

    Basically, the bug is that tcServer incorrectly picks up any sub-namespaces on AspectJ load-time-weaving, when the defined namespaces to look in does not include any sub-namespaces in aop.xml:

    I.e.:

    Code:
    <weaver>
        <include within="foo.*"/>
    </weaver>
    This will incorrectly weave classes in all sub-namespaces of foo (e.g. "foo.foobar.foocode...." etc.).

    This should only be possible if the include path is written like this:

    Code:
    <weaver>
        <include within="foo..*"/>
    </weaver>
    (Notice the ant-style syntax.) -- Took me a few days to figure out.... :-/

    Best regards,
    ~Morten :-)
Working...
X