1 Reply Latest reply on Jan 2, 2007 11:25 AM by Andrew

    Seam 1.1 nullifies member variables when it shouldn't

    Andrew Apprentice

      A circular call in Seam 1.1 causes null references to injected values.

      Circular call use case:

      public class A {
      private B b;
      public void doSomething(ActionEvent evt) {
      public void dummyMethod() {}

      public class B {
      private C c;
      public void thisWorks() {
      public void nullPointerHere() {}

      public class C {
      private A a;
      public void callMe() {
      a.dummyMethod(); // this call causes A's member variables
      // to be set to "null"

      There is no reason IMO that this should not be allowed. Seam incorrectly removes A's member variables despite the fact that there is an actively running method on the thread inside of A.