Skip to content

Commit

Permalink
issues/5308 hack revert the eclipse-ee4j#5207 change for local testing
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Marlow <smarlow@redhat.com>
  • Loading branch information
scottmarlow committed Sep 6, 2023
1 parent a718863 commit dfcd7a6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions impl/src/main/java/com/sun/faces/context/FacesContextImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
import jakarta.el.ELContext;
import jakarta.el.ELContextEvent;
import jakarta.el.ELContextListener;
import jakarta.enterprise.context.spi.AlterableContext;
import jakarta.enterprise.inject.spi.Bean;
import jakarta.enterprise.inject.spi.BeanManager;
//import jakarta.enterprise.context.spi.AlterableContext;
//import jakarta.enterprise.inject.spi.Bean;
//import jakarta.enterprise.inject.spi.BeanManager;
import jakarta.faces.FactoryFinder;
import jakarta.faces.application.Application;
import jakarta.faces.application.ApplicationFactory;
Expand Down Expand Up @@ -509,7 +509,7 @@ public void setCurrentPhaseId(PhaseId currentPhaseId) {
*/
@Override
public void release() {
BeanManager beanManager = Util.getCdiBeanManager(this);
// BeanManager beanManager = Util.getCdiBeanManager(this);

released = true;
if (externalContext != null) {
Expand Down Expand Up @@ -556,8 +556,8 @@ public void release() {
DEFAULT_FACES_CONTEXT.remove();

// Destroy our instance produced by FacesContextProducer.
Bean<?> bean = beanManager.resolve(beanManager.getBeans(FacesContext.class));
((AlterableContext) beanManager.getContext(bean.getScope())).destroy(bean);
// Bean<?> bean = beanManager.resolve(beanManager.getBeans(FacesContext.class));
// ((AlterableContext) beanManager.getContext(bean.getScope())).destroy(bean);
}

/**
Expand Down

0 comments on commit dfcd7a6

Please sign in to comment.