You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/03/23 21:07:41 UTC

[jira] [Commented] (ARTEMIS-1067) Wrong format string specifiers in exception messages

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

ASF GitHub Bot commented on ARTEMIS-1067:
-----------------------------------------

GitHub user jdanekrh opened a pull request:

    https://github.com/apache/activemq-artemis/pull/1126

    ARTEMIS-1067 fix format specifiers in formatting strings

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jdanekrh/activemq-artemis jd_formatting

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-artemis/pull/1126.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1126
    
----
commit ca13e08eb2308c2cbd965268510fb7bc311b78f9
Author: Jiri Danek <jd...@redhat.com>
Date:   2017-03-23T12:25:47Z

    ARTEMIS-1067 fix format specifiers in formatting strings

----


> Wrong format string specifiers in exception messages
> ----------------------------------------------------
>
>                 Key: ARTEMIS-1067
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1067
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.next
>            Reporter: Jiri Danek
>            Priority: Trivial
>
> {noformat}
>    public AbstractActiveMQClientResource(String url) {
>       if (url == null) {
>          throw new IllegalArgumentException(String.format("Error creating {} - url cannot be null", this.getClass().getSimpleName()));
>       }
> {noformat}
> {{String.format}} does not recognize the \{\} placeholder.
> There are three instances of this



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)