diff --git a/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/ScannedClasses.java b/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/ScannedClasses.java index daaca850..3a385b26 100644 --- a/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/ScannedClasses.java +++ b/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/ScannedClasses.java @@ -11,6 +11,9 @@ public interface ScannedClasses { /** * Adds a class with given name to the set of types discovered during type discovery. * The class will therefore be scanned during bean discovery. + *
+ * Adding the same class multiple times, or adding a class that is automatically discovered + * by the container, leads to non-portable behavior. * * @param className binary name of the class, as defined by The Java™ Language Specification; * in other words, the class name as returned by {@link Class#getName()}