Just to help me understand how we view parameterized types that have wildcards.
Which of these producers are valid?
@Produces public Consumer<? extends Number> assignableToNumber() { return null; } @Produces public Consumer<Number> number() { return null; }
Which of these observers are valid?
public void assignableToNumber(@Observes Consumer<? extends Number> assignableToNumber) {
}
public void number(@Observes Consumer<Number> number) {
}
Which of these injection points are valid?
@Inject Consumer<? extends Number> assignableToNumber;
@Inject Consumer<Number> number;
-David
Hi,
all tests in the TCK should "say what part of the spec" they test using the `@SpecAssertion` annotation. If there's a test without this annotation, that's a bug.
Now, this test _does_ have `@SpecAssertion`s, so you can find which part of the spec they test in the tck-audit-*.xml files. For example, `beanSetOfBeanTypesContainsOnlyLegalTypes` verifies that "The resulting set of bean types for a managed bean consists only of legal bean types, all other types are removed from the set of bean types."
LT
_______________________________________________ cdi-dev mailing list cdi-dev@xxxxxxxxxxxTo unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdi-dev
|