[cdi-dev] Section 4.2, worst worded section yet.... holy moly... really?
richardhightower at gmail.com
Tue Oct 18 03:12:45 EDT 2011
I think the gist of it is as follows:
Inheritance of Member-level inheritance...
•Injected fields are inherited
•Initializer methods, non-static observers, @PostConstruct and @PreDestroy
are inherited, but can be overridden
•Interceptors are inherited can be overridden
•Producers, consumers are not inherited
Check out this working from Section 4.2....
"If X is a generic type, and an injection point, producer method, producer
field, disposer method or observer method de- clared by X is inherited by Y,
and the declared type of the injection point, producer method, producer
field, disposed para- meter or event parameter contains type variables
declared by X, the type of the injection point, producer method, producer
field, disposed parameter or event parameter inherited in Y is the declared
type, after substitution of actual type arguments declared by Y or any
intermediate class that is a subclass of X and a superclass of Y."
That is not a paragraph... that is one sentence.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cdi-dev