Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] AspectJ weaving problem

Hi all,
I'm working with an AspectJ project using the aspect path to weave some
external aspects to the Java program.

Now, I'm trying to weave my aspects to a bunch of classes already woven
by CaesarJ but I get some troubles.  When I run the ajc compiler like:

  ajc -inpath [compiled CaesarJproject] -aspectpath [Compiled AspectJ aspect]

the compiler give me these errors:

  >ajc -inpath \bin -aspectpath C:\exec

    progetto\World..java [error] class 'progetto.World_Impl' is already
    woven and has not been built in reweavable mode

    progetto\World.java [error] class 'progetto.World_Impl$Registry' is
    already woven and has not been built in reweavable mode

    progetto\HelloWorld.java [error] class 'progetto.HelloWorld' is
    already woven and has not been built in reweavable mode

    progetto\HelloWorld.java [error] class 'progetto.HelloWorld_Impl' is
    already woven and has not been built in reweavable mode

    4 errors

Do you have any ideas about how to solve this problem? I've looked for
a "reweavable" option in cjc and ajc but without luck.

Thank you in advance for your help.

Mattia


Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!

Back to the top