Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] Re: aspectj-dev Digest, Vol 8, Issue 2

#: Marc Cherfi changed the world a bit at a time by saying on  10/3/2005 6:22 PM :#
Hi,


after() returning : static(@EventSubsriber *) {
        myMethod (XXX);
    }
with XXX = thisJoinPoint or thisJoinPointStaticPart
cause the following error :

Exception in thread "main" java.lang.NoSuchMethodError: org.aspectj.runtime.reflect.Factory.makeInitializerSig(Ljava/lang/String;Ljava/lang/String;)Lorg/aspectj/lang/reflect/InitializerSignature; at com.octo.mdp.dsl.ModelDrivenPojoSample.<clinit>(ModelDrivenPojoSample.java:1)

The special fomr in staticinit pointcut seems doesn't have any context....Is there any other solution to get join point class information ???

MAC



I think that should be written:

after(): staticinitialization((@EventSubscriber *)) {
	yourMethodHere()
}

./alex
--
.w( the_mindstorm )p.

ps: I haven't tried the above code but I think it is correct

On Monday 03 October 2005 18:00, aspectj-dev-request@xxxxxxxxxxx wrote:
Send aspectj-dev mailing list submissions to
	aspectj-dev@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
	https://dev.eclipse.org/mailman/listinfo/aspectj-dev
or, via email, send a message with subject or body 'help' to
	aspectj-dev-request@xxxxxxxxxxx

You can reach the person managing the list at
	aspectj-dev-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of aspectj-dev digest..."


Today's Topics:

   1. context in staticinitialization (Marc Cherfi)
   2. Re: context in staticinitialization (Alexandru Popescu)


----------------------------------------------------------------------

Message: 1
Date: Mon, 3 Oct 2005 16:27:06 +0200
From: Marc Cherfi <mac@xxxxxxxx>
Subject: [aspectj-dev] context in staticinitialization
To: aspectj-dev@xxxxxxxxxxx
Message-ID: <200510031627.06729.mac@xxxxxxxx>
Content-Type: text/plain;  charset="us-ascii"

Hi all,

i need to get context infromation about class on staticinitialization
pointcut.How can i do ? I know that thisJointPoint form isn't available
but if anyone has a pattern to do that .....

Thanks in adavnce.

MAC


------------------------------

Message: 2
Date: Mon, 03 Oct 2005 18:35:03 +0200
From: Alexandru Popescu <the.mindstorm.mailinglist@xxxxxxxxx>
Subject: Re: [aspectj-dev] context in staticinitialization
To: AspectJ developer discussions <aspectj-dev@xxxxxxxxxxx>
Message-ID: <43415DB7.8010709@xxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

#: Marc Cherfi changed the world a bit at a time by saying on  10/3/2005
4:27 PM :#

> Hi all,
>
> i need to get context infromation about class on staticinitialization
> pointcut.How can i do ? I know that thisJointPoint form isn't available
> but if anyone has a pattern to do that .....
>
> Thanks in adavnce.
>
> MAC

I think you can use the thisJoinPointStaticPart instead.

./alex
--
.w( the_mindstorm )p.


------------------------------

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


End of aspectj-dev Digest, Vol 8, Issue 2
*****************************************
_______________________________________________
aspectj-dev mailing list
aspectj-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-dev



Back to the top