You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Alexander Falb (JIRA)" <ji...@apache.org> on 2018/07/16 13:19:00 UTC

[jira] [Updated] (DELTASPIKE-1353) null values as arguments in messagebundles lead to exceptions

     [ https://issues.apache.org/jira/browse/DELTASPIKE-1353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Falb updated DELTASPIKE-1353:
---------------------------------------
    Description: 
When using a Deltaspike Messagebundle and feeding {{null}} as argument to some non-String argument, the MessageInterpolators throw Exceptions. Depending if I use the MessageFormatter or the String.format based Interpolater the Exceptions differ, but origin from the same misassumption, that {{null}} can be replaced with {{"'null'"}} (MessageBundleInvocationHandler:179)
I created 2 unittests to showcase this behaviour, see attached surefire logs.

  was:
When using a Deltaspike Messagebundle and feeding {{null}} as argument to some non-String argument, the MessageInterpolators throw Exceptions. Depending if I use the MessageFormatter or the String.format based Interpolater the Exceptions differ, but origin from the same missassumption, that {{null}} can be replaced with {{"'null'"}} (MessageBundleInvocationHandler:179)
I created 2 unittests to showcase this behaviour, see attached surefire logs.


> null values as arguments in messagebundles lead to exceptions
> -------------------------------------------------------------
>
>                 Key: DELTASPIKE-1353
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1353
>             Project: DeltaSpike
>          Issue Type: Bug
>    Affects Versions: 1.8.2
>            Reporter: Alexander Falb
>            Priority: Major
>         Attachments: org.apache.deltaspike.test.core.api.message.MessageFormattedMessageTest.txt, org.apache.deltaspike.test.core.api.message.SimpleMessageTest.txt
>
>
> When using a Deltaspike Messagebundle and feeding {{null}} as argument to some non-String argument, the MessageInterpolators throw Exceptions. Depending if I use the MessageFormatter or the String.format based Interpolater the Exceptions differ, but origin from the same misassumption, that {{null}} can be replaced with {{"'null'"}} (MessageBundleInvocationHandler:179)
> I created 2 unittests to showcase this behaviour, see attached surefire logs.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)