diff --git a/api/src/main/java/javax/enterprise/inject/spi/BeanManager.java b/api/src/main/java/javax/enterprise/inject/spi/BeanManager.java index 379043930..29c62af52 100644 --- a/api/src/main/java/javax/enterprise/inject/spi/BeanManager.java +++ b/api/src/main/java/javax/enterprise/inject/spi/BeanManager.java @@ -654,7 +654,7 @@ public Bean createBean(BeanAttributes attributes, Class beanClass, * If no qualifier is passed to {@link Instance#select} method, the @Default qualifier is assumed. * * @return an {@link Instance} object to request beans instances - * @throws IllegalStateException if called during application initialization, before the {@link AfterBeanDiscovery} + * @throws IllegalStateException if called during application initialization, before the {@link AfterDeploymentValidation} * event is fired. * @since 2.0 */ diff --git a/spec/src/main/asciidoc/core/spi.asciidoc b/spec/src/main/asciidoc/core/spi.asciidoc index 499b461f3..68abbcf5f 100644 --- a/spec/src/main/asciidoc/core/spi.asciidoc +++ b/spec/src/main/asciidoc/core/spi.asciidoc @@ -232,7 +232,8 @@ Note that, an exception is thrown if the following operations are called before and if the following operations are called before the `AfterDeploymentValidation` event is fired: -* `getReference(Bean, Type, CreationalContext)` +* `createInstance()`, +* `getReference(Bean, Type, CreationalContext)`, * `getInjectableReference(InjectionPoint, CreationalContext)`. All other operations of BeanManager may be called at any time during the execution of the application.