[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Inter-type declarations: super.print() to invoke the method in the parent failed
|
I've raised bugs 108092 and 108093 to track the two problems you are
seeing. You might like to add yourself to the cc list of the bug
reports to track progress - I tried to do it for you but bugzilla
doesn't recognize your email address yet.
I'll get to them as quickly as I can - but that will probably be this
evening (UK time).
Thanks, Adrian.
On 07/09/05, Guofeng Zhang <guofeng@xxxxxxxxxxxxx> wrote:
> I have the following codes:
> //
> public abstract class Order {
> .....
> public void print() { ...... }
> }
> //
> public class SalesOrder {
> }
> //
> public abstract aspect OrderDecorator
> {
> declare parents : SalesOrder extends Order;
> public void SalesOrder.print()
> {
> super.print(); // Line 12
> }
> protected pointcut print(Order order) : target(order) && call(public void print());
> }
>
> In Line 12 above, I want to call Order.print(), but AspectJ M3a dislay the following error message:
> [iajc] D:\workdir\DPsample\main\src\com\designpattern\decorator\OrderDecora
> tor.aj:12 [error] The method print() is undefined for the type Object
> [iajc] super.print();
>
> I donot know what's wrong with my code.
>
> Thanks for your help.
>
> guofeng
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
--
-- Adrian
adrian.colyer@xxxxxxxxx