Jandex's ClassInfo.fields() and methods() by default return synthetic elements, which users typically don't want when they're scanning for user-defined concepts (like CDI beans, JAX-RS resource methods, etc.), because synthetic elements never represent user-defined concepts, even if they carry the same annotations. We could have something like allFields() / allMethods() that would return them, for completeness.
The big obvious problem is this would be a huge breaking change. Need to think about it.
Jandex's
ClassInfo.fields()andmethods()by default return synthetic elements, which users typically don't want when they're scanning for user-defined concepts (like CDI beans, JAX-RS resource methods, etc.), because synthetic elements never represent user-defined concepts, even if they carry the same annotations. We could have something likeallFields()/allMethods()that would return them, for completeness.The big obvious problem is this would be a huge breaking change. Need to think about it.