Steps to Reproduce: |
Try to run this application:
{code} import javax.enterprise.inject.se.SeContainer; import javax.enterprise.inject.se.SeContainerInitializer; import javax.enterprise.inject.spi.CDI;
public class NPEOnSecondGetBeanManager {
public static void main(String[] args) { SeContainer container = SeContainerInitializer.newInstance() .disableDiscovery() .addBeanClasses(BeanClass.class) .initialize(); CDI.current().getBeanManager(); container.close();
CDI.current().getBeanManager(); }
public static class BeanClass { } } {code} |