Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] ajc not weaving existing bytecode

I don't have any idea what's going wrong.  One way to better understand thing would be to add:

  declare warning: allCalls(): "this matches my pointcut";

And then compile.  This will let you know if there's something weird causing your pointcut not to match what you think it does, or if your problem is more of a configuration issue of some kind.

-Jim

> -----Original Message-----
> From: Pedone, Tim [mailto:Tim_Pedone@xxxxxxxxxx]
> Sent: Wednesday, April 16, 2003 9:12 AM
> To: 'aspectj-users@xxxxxxxxxxx'
> Subject: [aspectj-users] ajc not weaving existing bytecode
> 
> I'm having trouble with ajc not weaving my bytecode.  I'm using AspectJ
> 1.1
> rc1.  I'm invoking it using Ant.  I've used a pretty broad pointcut:
> 
> 	pointcut allCalls(): execution(*
> com.intuit.central.auth.Authenticator.*(..));
> 
> 
> 	Object around() : allCalls()
> 	{
> 		System.out.println("************************* here
> *************************");
> 	}
> 
> 
> My ant call looks like this:
> 
>         <iajc verbose="true" sourceroots="${aspectsource}"
> destdir="${aspectLib}"
> classpath="${classes};${PSSWClasspath};${strutstestJar}"
> injars="${authJar}"/>
> 
> Where asptectsource contains my aspect files, authJar contains the code I
> want weaved (the com.intuit.central.auth.Authenticator class is in that
> jar
> file.  There are no compile errors when I run this and all the classes
> from
> authJar get copied to aspectLib; however, I noticed that the verbose
> output
> says:
> 
> [iajc] compiling c:/source/aspects/MyAspect.aj
> [iajc] weaving
> [iajc] might need to weave
> [UnwovenClassFile(c:/source/aspectLib/com/intuit/central/auth/Authenticato
> r.
> class. com.intuit.central.auth.Authenticator), .... (lists basically all
> classes in the authJar file)
> 
> Of course, if I run the code, the *********************** here
> ********************* never shows up.
> 
> Any ideas?
> 
> Thanks,
> 
> Tim
> 
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top