Re: [abc-users] No active advices

From: Muga Nishizawa <muga@csg.is.titech.ac.jp>
Date: Mon Jan 23 2006 - 11:38:04 GMT

Hi Oege,

> I'm afraid I don't understand the problem. Can you give an example?

I explain my problem by using a simple example.

When I compiled the following aspect with abc compiler:
public aspect HelloTest {
  pointcut sample():
    within(Hello) && call(void say());
    // The specified join points don't exist.
  before(): sample() {
    System.out.println("before advice");
  }
}
, the compiler output the aspect's classfile, named HelloTest.class,
and displayed the following message:
"HelloTest.aj:5-7: Warning -- Advice declaration doesn't apply anywhere"
. In fact, the aspect's classfile did not have the advice body.

I want to extend abc compiler for outputting the aspect's classfile that has
the advice body, but I don't know the method of extension.

Could you understand my problem?

Muga Nishizawa,

----- Original Message -----
From: "Oege de Moor" <Oege.de.Moor@comlab.ox.ac.uk>
To: <abc-users@comlab.ox.ac.uk>
Sent: Monday, January 23, 2006 7:25 PM
Subject: Re: [abc-users] No active advices

>
> Hi Muga,
>
> I'm afraid I don't understand the problem. Can you give an example?
>
> Thanks,
>
> -Oege
>
> On Mon, 23 Jan 2006, Muga Nishizawa wrote:
>
>> Hi, I'm trying to write no active advice declarations in the aspect's
>> classfile, but abc (v1.1.0) compiler does not write the advices. It
>> ignores the advices and outputs the aspect. Please tell me a simple
>> method the advices are written with the abc compiler. Muga Nishizawa,
>>
>>
>
>
Received on Mon Jan 23 11:38:22 2006

This archive was generated by hypermail 2.1.8 : Tue Jan 24 2006 - 04:10:08 GMT