deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DELTASPIKE-321) DefaultMessage.argument(Serializable...) should guard against empty arrays
Date Tue, 19 Mar 2013 13:03:15 GMT

    [ https://issues.apache.org/jira/browse/DELTASPIKE-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13606300#comment-13606300
] 

John D. Ament commented on DELTASPIKE-321:
------------------------------------------

Added two new methods to help support this use case.  I think your description and title differ
in meaning a bit, but now there's an argumentArray method that you can pass your vararg'd
reference to apply properly.
                
> DefaultMessage.argument(Serializable...) should guard against empty arrays
> --------------------------------------------------------------------------
>
>                 Key: DELTASPIKE-321
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-321
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: Core
>            Reporter: Nicklas Karlsson
>            Assignee: John D. Ament
>             Fix For: 0.4-incubating
>
>
> If you have a method with ... parameters, it will be interpreted as an array. If it is
passed along to DefaultMessage.argument the object array is interpreted as an object and added
as such. Now that I mention it, wouldn't the flow be the same even if the array came populated
with data?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message