1 Reply Latest reply on Nov 16, 2007 6:20 AM by Pete Muir

    Overriding a method partially breaks annotations

    Marcus Schmidke Newbie

      I don't know if this is a bug or if I am making a mistake, but Seam behaves some kind of strange (2.0.0.CR1):

      I have a base class

      public abstract class AImpl implements A {
       @In protected org.hibernate.Session session;
       public void create() {}

      and a derived class

      public class BImpl extends AImpl implements B {
       public void create() {

      This does not work as expected.

      Interestingly, the @Begin annotation is broken by this construct, but the @Create isn't (and the @In in the base class also works fine). In other words, the create() method is called, but no Conversation is started.

      Is there any documented way how to work with Seam annotations in a class Hierarchy?

      To be on the safe side, as a first step I'll mark all annotated base class methods as final.