-
Bug
-
Resolution: Done
-
Minor
-
1.0.0.PREVIEW1
-
None
-
Workaround Exists
-
-
Low
Typically @Any is used to inject a built-in type that allows dynamic select of a bean. However, if there is exactly one bean of a type present, then @Any should be able to stand in for @Current.
@Any Drink drink;
See AnyInjectionTest in the tck.
Currently, the RI is throwing the following exception:
"An injection point annotated javax.enterprise.inject.Any must have a type parameter"
at org.jboss.webbeans.BeanValidator.checkFacadeInjectionPoint(BeanValidator.java:201)
at org.jboss.webbeans.BeanValidator.validate(BeanValidator.java:103)
at org.jboss.webbeans.bootstrap.WebBeansBootstrap.boot(WebBeansBootstrap.java:210)