[cdi-dev] [JBoss JIRA] (CDI-697) Provide delegating/forwarding implementations of the annotated type model classes

John Ament (JIRA) issues at jboss.org
Mon Mar 20 14:07:00 EDT 2017


    [ https://issues.jboss.org/browse/CDI-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13381135#comment-13381135 ] 

John Ament commented on CDI-697:
--------------------------------

I agree, but here's what the spec says

bq. getFields() returns all default-access, public, protected or private fields declared on the type and those declared on any supertypes. The container should call AnnotatedField.getJavaMember().getDeclaringClass() to determine the type in the type hierarchy that declared the field.

The problem is that 11.4.1 doesn't clarify that fields() etc use these same rules.  I think that's something easy to clarify in the spec text.

> Provide delegating/forwarding implementations of the annotated type model classes
> ---------------------------------------------------------------------------------
>
>                 Key: CDI-697
>                 URL: https://issues.jboss.org/browse/CDI-697
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Portable Extensions
>            Reporter: Laird Nelson
>            Priority: Minor
>
> A lot of duplicate efforts could be eliminated if the CDI SPI supplied delegating implementations of each of the {{Annotated*}} SPI interfaces.  These implementations would assist in creating objects suitable for passing to {{ProcessAnnotatedType#setAnnotatedType(AnnotatedType)}} (and the like) when the configurator APIs prove to be too simplistic.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the cdi-dev mailing list