Skip to main content

JSF 1.2 - why instance.remove() is called when facesContext passed in SetCurrentInstance(FC) is null?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
Naren_Beniwal
Offline
Joined: 2013-05-16

Can someone please explain the reason of changing the implementation of SetCurrentInstance method of FacesContext class in JSF1.2.

JSF1.1-
protected static void setCurrentInstance(FacesContext context) {
instance.set(context);
}
JSF1.2-
protected static void setCurrentInstance(FacesContext context) {
if (context == null) {
instance.remove();
} else {
instance.set(context);
}
}
For which issue this change is made?
Please help?