[
https://jira.jboss.org/jira/browse/WELDX-56?page=com.atlassian.jira.plugi...
]
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