2011-05-31 84 views
0

我給出了一種方法,一類像這樣多個參數..周圍建議

public int foo(String a,String b){} 

現在我想在這一點上應用切入點和利用各地的意見,我要改變的第二個參數。

public aspect Aspect { 
     int around(String s): call(int foo(Object,String)) && args(i) { 
     int i = proceed(i.concat("hello")); 
     return i; 
     } 
} 

但我不能這樣做..它給我的錯誤,方面尚未應用。 adviceDidnotMatch ..

任何幫助please..I我堅持..: -/ 在此先感謝..

+2

你究竟在做什麼,你想要發生什麼?我有點不明白這個問題 – DaMainBoss 2011-05-31 07:27:07

回答

0

proceed()around()不匹配。
proceed()應與兩個參數一起調用。