Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] @DeclareParents problems

I moved the working classes into packages. That still works.

I played around some more with the real application code that was not working. It appears that it is the Spring interface I am trying to implement is related to the problem. I replaced it with a home grown interface and changed everything to use it. THAT WORKED!!!???

When I change only the interface to the Spring interface, it kills the application. Now I must say I am even more at a loss than I was before. Why would that interface cause a problem? The web app has the Spring jar that contains the interface. Everything compiles.

Any ideas? I will keep playing...

And many thanks for the help you have given so far. It has helped lead me to what I know so far.

-Scott

================================================

On 3/27/06, Andy Clement <andrew.clement@xxxxxxxxx> wrote:

On 27/03/06, Scott < aspectj-users@xxxxxxxxxxx> wrote:
Yes. The working case is in the default package. I could move the classes into packages to see if that changes things.

If you can try your classes in a package other than the default ... that may change things... 

Also, to make this more clear than my first email. AJDT appears to be working. It is the one in the Ant build (therefore, my code...) that is not working. I have replaced those jars with both the latest from the download site and with jars from my local machine (the ones that work). Still no go.

I am becoming more certain that it is some issue with the version that I am using, but I cannot find how to fix it. I appears that AJDT is working fine and well.

ANT uses the aspectjtools.jar from a standard install of AspectJ.  You won't be able to hack in the jars from an AJDT directly as ajde.jar+aspectjweaver.jar are not the same as aspectjtools.jar since some dependencies will be missing.  If you put the AJDT ajde.jar then the AJDT aspectjweaver.jar then the AspectJ aspectjtools.jar in that order on your ANT classpath...  but as AspectJ is more recent than AJDT and no fixes have gone in for DeclareParents, they should be functionally equivalent in that area.

But first, before messing around with those paths, I'd recommend trying your AJDT scenario with the types in a package other than the default.


_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users




Back to the top