Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] a possilbe bug with aspectj1.1rc2



Hi,

I've installed 1.1rc2 and tried it, and I suspect there is a bug with it. I have two pointcuts that worked well with previous versions but not with 1.1rc2. Below I describe them in detail.

1.  Then following pointcut stop working since 1.1rc2,

/***never reach this point ever since aspectj1.1rc2 used *****/
  after(Event e, Plan p) returning(Plan pa): call(public Plan createPlan(..)) && args(e, ..) && target(p){
     System.out.println("----------Plan created-----------");

}

and if I change "after() returning(): call() " to "before():execution()", it works.

  /***** this one can be reached *************/
    before(Event e, Plan p) : execution(public Plan createPlan(..)) && args(e, ..) && target(p){
     System.out.println("*************Plan created***********");
  }

 

2. The same thing happens to the pointcut below.


  /***never reach this point ever since aspectj1.1rc2 used *****/
  before(ajcBasePlanInt pai): call(PlanFSM body()) && target(pai){
        System.out.println("----------Enter body()-------------");
  }

    /***** this one can be reached *************/
   before(ajcBasePlanInt pai): execution(PlanFSM body()) && target(pai){
        System.out.println("=========Enter body()==========");
       }

 

Is this a bug?

Thanks in advance.

Feilong Chen



Add photos to your messages with MSN 8. Get 2 months FREE*.

Back to the top