Hi,

this is not really possible

execution(Foo->new())

works by weaving foo into


  | class Foo
  | {
  |    public Foo(){}
  | 
  |    //Added wrapper
  |    public static Foo new$aop$Foo(){
  |       //AOP magic, which ends up calling foo
  |    }
  | }
  | 

We then change everywhere that calls 
 Foo foo = new Foo()

into
Foo foo = Foo.new$aop$Foo()


And as you know in a subclass constructor, the first statement must be a call 
to super(), i.e it cannot be replaced with the wrapper method call.

You could however take a look at using

construction(Foo->new())

where the extra weaving code is placed inside the constructor




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925529#3925529

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925529


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to