1 Reply Latest reply on Jun 16, 2005 8:58 AM by bill.burke

    Overriding a method with a mixin

    zoid

      Is it possible to override a method using the mixin construct?

      Eg. Base class A contains a method foo(). Class B extends A but doesn't contain any methods. Define a mixin (C and CImpl) that implement foo() in a different but compatible way (same arguments, same return value). Is there a way to apply this mixin to B thus overriding the foo() method defined by A?

      I tried several things, but always get the same error: "jboss-aop.xml is trying to apply an already existing method foo for class B"

      Thanks!