[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [aspectj-dev] Annotation & Jdk1.4
- From: "Gonul, Bora" <Bora.Gonul@xxxxxxxxxxx>
- Date: Wed, 24 Aug 2005 11:26:42 +0100
- Delivered-to: email@example.com
That is exactly what I tried today.
1)Written a SimplePOJO. Added annotations to it using backport (Compiled
2)Written a simple aspect which will intercept all the methods on that pojo
3)Written a test case to call a method from that simple pojo
Now don't I need to weave these test classes ?
And if weave them annotation information is lost.
From: Alexandru Popescu [mailto:the.mindstorm.mailinglist@xxxxxxxxx]
Sent: Wednesday, August 24, 2005 1:19 PM
To: AspectJ developer discussions
Subject: Re: [aspectj-dev] Annotation & Jdk1.4
#: Gonul, Bora changed the world a bit at a time by saying on 8/24/2005
10:33 AM :#
> Hi all,
> Is there a way to use annotation with aspectj and jdk 1.4.
> What I thought was to use Common-Attributes or Backport175.
> But they are working at class level which aspectj also does.
> So aspectj will override and regenerate the classes. Right ?
> What is the solution ?
I think backport175 is the one solution that can help you. Using it as a
precompilation step (before aj precompile, if no ltw used) will create the
annotations in your classes, so that at 2nd step aj will be able to do the
aspectj-dev mailing list