10 Replies Latest reply on Dec 13, 2006 1:47 PM by None None

    @In(create=true) throws exception when variable is null?

    None None Master

      I have a session bean that has a variable (instance member) like this:

      @In(create=true) Foo foo;

      Even if "foo" is null, that should work, because it will just create it, right? But it doesn't work; I have to do:

      @In(create=true,required=false) Foo foo;

      which doesn't make sense. It seems like if create is true, then required is superfluous, right? Or not right?