[CDI] api service values (array) must be non-binding for to be valid
@@ -18,13 +18,17 @@ package org.osgi.service.cdi.annotations;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
+
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.context.Dependent;
import javax.enterprise.util.AnnotationLiteral;
+import javax.enterprise.util.Nonbinding;
import javax.inject.Qualifier;
+
import org.osgi.framework.PrototypeServiceFactory;
import org.osgi.framework.ServiceFactory;
@@ -100,6 +104,7 @@ public @interface Service {
*
* @return the service types
*/
+ @Nonbinding
Class<?>[] value() default {};
}
