diff --git a/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/BuildCompatibleExtension.java b/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/BuildCompatibleExtension.java index 2b5e5859..452b5436 100644 --- a/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/BuildCompatibleExtension.java +++ b/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/BuildCompatibleExtension.java @@ -49,9 +49,10 @@ * Build compatible extensions may be annotated {@link SkipIfPortableExtensionPresent @SkipIfPortableExtensionPresent} * when they are supposed to be ignored in presence of a given portable extension. *
- * CDI implementations are not required to accept custom implementations of any {@code jakarta.enterprise.lang.model} - * or {@code jakarta.enterprise.inject.build.compatible.spi} interface. In other words, users may only use instances - * of these interfaces that they previously obtained from the corresponding API. If not, non-portable behavior results. + * CDI implementations are not required to accept custom implementations of any {@code jakarta.enterprise.lang.model}, + * {@code jakarta.enterprise.invoke} or {@code jakarta.enterprise.inject.build.compatible.spi} interface + * on the API boundary of build compatible extensions. In other words, users may only use instances of these + * interfaces that they previously obtained from the corresponding API. If not, non-portable behavior results. *
* In build compatible extensions, implementations of {@link jakarta.enterprise.lang.model.AnnotationTarget} * only return annotations with the {@linkplain java.lang.annotation.RetentionPolicy#RUNTIME runtime} retention policy. diff --git a/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/Registration.java b/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/Registration.java index 219f33d1..8870ad6b 100644 --- a/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/Registration.java +++ b/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/Registration.java @@ -41,8 +41,8 @@ * If the {@code @Registration} method has a parameter of type {@code ObserverInfo}, the method is called once * for each observer whose observed event type is assignable to at least one expected type. *
- * Note that interceptors are beans, and {@code InterceptorInfo} is a subtype of {@code BeanInfo}, so if the method - * has a parameter of type {@code BeanInfo}, it will be called for interceptors as well. + * Note that {@code InterceptorInfo} is a subtype of {@code BeanInfo}, so if the method has a parameter + * of type {@code BeanInfo}, it will be called for interceptors as well. *
* If the {@code @Registration} method doesn't declare any parameter of one of these types,
* or if it declares more than one, the container treats it as a definition error.
diff --git a/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/SyntheticBeanBuilder.java b/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/SyntheticBeanBuilder.java
index 8afb2c94..8a74e44f 100644
--- a/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/SyntheticBeanBuilder.java
+++ b/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/SyntheticBeanBuilder.java
@@ -100,7 +100,8 @@ public interface SyntheticBeanBuilder
- * If not called, this synthetic bean will be {@code @Dependent}.
+ * If not called, and if no stereotype is added that defines a scope,
+ * this synthetic bean will be {@code @Dependent}.
*
* @param scopeAnnotation the scope type, must not be {@code null}
* @return this {@code SyntheticBeanBuilder}
@@ -131,7 +132,6 @@ public interface SyntheticBeanBuilder
* If not called, this synthetic bean will not have a priority.
- * If this synthetic bean is not an alternative, the priority is ignored.
*
* @param priority the priority of this synthetic bean
* @return this {@code SyntheticBeanBuilder}
diff --git a/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/SyntheticComponents.java b/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/SyntheticComponents.java
index 949d17af..d6ecc44a 100644
--- a/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/SyntheticComponents.java
+++ b/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/SyntheticComponents.java
@@ -20,14 +20,14 @@
public interface SyntheticComponents {
/**
* Creates a {@link SyntheticBeanBuilder} that allows configuring a new synthetic bean
- * of given {@code beanClass}. The synthetic bean will be registered at the end of
+ * of given {@code implementationClass}. The synthetic bean will be registered at the end of
* the {@link Synthesis @Synthesis} method.
*
- * @param beanClass the bean class of the new synthetic bean, must not be {@code null}
- * @param
* If the collection of methods described above contains multiple methods with the same signature,
* all such methods are returned. {@link MethodInfo#declaringClass() MethodInfo.declaringClass}
@@ -186,8 +188,9 @@ public interface ClassInfo extends DeclarationInfo {
/**
* Returns a collection of {@linkplain FieldInfo fields} declared or implicitly declared
* in this class and all its superclasses up to and excluding {@code java.lang.Object},
- * as well as all direct and indirect superinterfaces. If this class is an interface,
- * only superinterfaces are considered.
+ * as well as all direct and indirect superinterfaces. If this class is {@code java.lang.Object},
+ * its fields are not excluded. If this class is an interface, only superinterfaces
+ * are considered.
*
* If the collection of fields described above contains multiple fields with the same name,
* all such fields are returned. {@link FieldInfo#declaringClass() FieldInfo.declaringClass}