Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] [aspect-users] Static initialization with JDK 1.5 annotation


Hi Mickaël,

I didn't have time to raise a bug -  I've already fixed it, you can download
the build as indicated below, let me know if you have problems.
BUILD COMPLETE -  build.432
Date of build: 01/14/2005 12:44:12
Time to build: 101 minutes 22 seconds
Last changed: 01/14/2005 10:45:36
Last log entry: Fix for "staticinitialization(@Blah *)"
Latest good AspectJ jar available at: download.eclipse.org/technology/ajdt/dev/aspectj-DEVELOPMENT.jar


regards,
Andy.
---
Andy Clement
AspectJ Committer
clemas@xxxxxxxxxx



Rifflard Mickaël <Mickael.Rifflard@xxxxxxxxxxxxxx>
Sent by: aspectj-users-admin@xxxxxxxxxxx

13/01/2005 13:08

Please respond to
aspectj-users@xxxxxxxxxxx

To
<aspectj-users@xxxxxxxxxxx>
cc
Subject
RE: [aspectj-users] [aspect-users] Static initialization with JDK 1.5 annotation





Hi Andy,

Thanks for this fix. I will try it quickly.

Could you tell me the bug id of static initialization when this one is created?

Thanks,

Mickaël RIFFLARD
Atos Origin

-----Message d'origine-----
De : aspectj-users-admin@xxxxxxxxxxx [mailto:aspectj-users-admin@xxxxxxxxxxx]De la part de Andrew Clement
Envoyé : jeudi 13 janvier 2005 13:14
À : aspectj-users@xxxxxxxxxxx
Objet : Re: [aspectj-users] [aspect-users] Static initialization with JDK 1.5 annotation



That should work ... but it doesn't right now - I just tried it, we'll fix it right
away.  Incidentally the problem you hit a little while ago with within(@Entity) not
working has now been fixed in the latest dev build (see bug 81863), you can get the
dev build from here:

http://download.eclipse.org/technology/ajdt/dev/aspectj-DEVELOPMENT.jar

Basically, this now works:

after() returning: within(@Entity *) && call(* *(..)) {
}

Andy.
---
Andy Clement
AspectJ
clemas@xxxxxxxxxx



Rifflard Mickaël <Mickael.Rifflard@xxxxxxxxxxxxxx>
Sent by: aspectj-users-admin@xxxxxxxxxxx
13/01/2005 09:19 Please respond to
aspectj-users@xxxxxxxxxxx

To<aspectj-users@xxxxxxxxxxx>
cc
Subject[aspectj-users] [aspect-users] Static initialization with JDK 1.5 annotation







Hi all,

I'm currently trying to match static initialization of objects with annotation.

I try this

               public aspect StaticInit {

                                after() : staticinitialization(@Entity test.*) {
                                                 System.out.println(thisJoinPoint.getSignature().toString());
                                }
               }

If I execute this aspect on source code :

               @Entity
               public class A {}
and
               public class B {
                                public static void main(String[] args) {
                                                 A a = new A();
                                }
               }

I obtain

               B.<clinit>
               A.<clinit>

I don't understand why my aspect match B initialization whereas this object does not have the annotation.

Is this a bad writing ? If so, what is the good writing ?

Thanks,

Mickaël RIFFLARD
Atos Origin

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


Back to the top