Description
EXECUTE: Create a CDI project.
EXECUTE: Create the following class:
@ApplicationScoped public class ProducerWInjections { @Produces public Test produce(InjectionPoint ip) { return null; } public static class Test { } }
EXECUTE: Build the project.
FAILURE: InjectionPoint ip is marked as an error "Bean that declares any scope other than @Dependent has an injection point of type InjectionPoint and qualifier @Default [JSR-299 ยง5.5.7]"
That's not correct since the injection points belongs to the producer method bean which scoped correctly. We should not validate such a injection against a bean class.