The current implementation does not fully comply with {{org.jboss.weld.bootstrap.spi.Deployment.loadBeanDeploymentArchive(Class<?>)}} contract: bq. If the deployment archive containing the given class is not currently a bean deployment archive, it must be added to the bean deployment archive graph and returned. This does not happen if isolation is disabled or if there is only one bean deployment archive.
We should either also synchronize or make the field final access to the shared additional bean deployment archive to prevent race conditions.
|