A circular call in Seam 1.1 causes null references to injected values.
Circular call use case:
@Name("a") public class A { @In(create=true) private B b; public void doSomething(ActionEvent evt) { b.thisWorks(); b.nullPointerHere(); } public void dummyMethod() {}
@Name("b") public class B { @In(create=true) private C c; public void thisWorks() { c.callMe(); } public void nullPointerHere() {}
@Name("c") public class C { @In(create=true) private A a; public void callMe() { a.dummyMethod(); // this call causes A's member variables // to be set to "null" }
Just found the bug for this (was already open):
http://jira.jboss.org/jira/browse/JBSEAM-631
This is a show stopper for us, so please upgrade the severity to "Blocker"