I am using
to clear the MyForm bean from the session(it's a session scope spring bean).
After destroying the bean in the very next line I did,
MyForm myForm= (MyForm)configurableListableBeanFactory.getBean("M yForm");
I was expecting the myForm instance to be null but it's not instead it's still an object but all the instance members of MyForm are now null!
shouldn't the myForm object been completely removed from the session(thus becoming available for GC) instead of it's instance member's values changed to null?