Never mind! I see that the
AnnotatedTypeConfigurator#filterFields()method does in fact return all fields from the entire type hierarchy. A little unexpected, but I'll take it!
Hmm, that sounds somewhat suprising.
AnnotatedTypeConfigurator#filterFields() makes use of
AnnotatedType#getFields()which is supposed to return all annotated fields of given type.
So that might be why you get all of them.
Gotta try this with some dummy project to see for myself.
Alright, I read CDI-697 too (was a bit too quick to answer here) and I am pretty sure the behavior is correct.
Basically, it is as I said - due to the usage of
you get all the fields, even in supertypes.
But granted, it is not clear that
AnnotatedTypeConfigurator#fields() will behave in the same manner.