[weld-issues] [JBoss JIRA] Commented: (WELDX-56) AnnotationInvokationHandler has no support for annotation default values

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Thu Dec 3 23:52:29 EST 2009


    [ https://jira.jboss.org/jira/browse/WELDX-56?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12498179#action_12498179 ] 

Stuart Douglas commented on WELDX-56:
-------------------------------------

I will re-implement with the Annotation defaults. I will also change it to make a copy of the map and check at creation time if a member without a default value is missing. Otherwise null pointer exceptions will be thrown at random times (such as when inserting into a map), resulting in hard to trace errors.

> AnnotationInvokationHandler has no support for annotation default values
> ------------------------------------------------------------------------
>
>                 Key: WELDX-56
>                 URL: https://jira.jboss.org/jira/browse/WELDX-56
>             Project: Weld Extensions
>          Issue Type: Bug
>            Reporter: Stuart Douglas
>         Attachments: an-inv-hand-patch-2.diff, an-inv-hand-patch.diff
>
>
> Attached patch supplies 'sensible' defaults for annotation values to prevent null pointer exceptions. It would be nice if it was possible to get the default values that were defined on the annotation type, but I am not sure how to do that (or even if it is possible).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list