You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Yannick Loth (JIRA)" <ji...@apache.org> on 2008/12/19 11:17:44 UTC

[jira] Created: (CHAIN-46) Override toString() method in class ContextBase

Override toString() method in class ContextBase
-----------------------------------------------

                 Key: CHAIN-46
                 URL: https://issues.apache.org/jira/browse/CHAIN-46
             Project: Commons Chain
          Issue Type: Improvement
    Affects Versions: 1.2
         Environment: Does not depend on the environment.
            Reporter: Yannick Loth
            Priority: Minor


Override toString() method in ContextBase so that logging the context does not only print the reference to the context instance but the contents of the context, as ContextBase[key=value,key=value,...,key=value]

Right now, when logging a ContextBase, I get : [Ljava.lang.Object;@1bef1ac
Which is not very explicit on the state/contents of the context

Do not forget to print the contents of the underlying Map and from the local properties.

One example of result would be
ContextBase[Map[key=value,key=value,...,key=value],key=value,...,key=value]
where first the map is "toStringed" and then the local properties.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (CHAIN-46) Override toString() method in class ContextBase

Posted by "Yannick Loth (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHAIN-46?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yannick Loth closed CHAIN-46.
-----------------------------

    Resolution: Invalid

> Override toString() method in class ContextBase
> -----------------------------------------------
>
>                 Key: CHAIN-46
>                 URL: https://issues.apache.org/jira/browse/CHAIN-46
>             Project: Commons Chain
>          Issue Type: Improvement
>    Affects Versions: 1.2
>         Environment: Does not depend on the environment.
>            Reporter: Yannick Loth
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Override toString() method in ContextBase so that logging the context does not only print the reference to the context instance but the contents of the context, as ContextBase[key=value,key=value,...,key=value]
> Right now, when logging a ContextBase, I get : [Ljava.lang.Object;@1bef1ac
> Which is not very explicit on the state/contents of the context
> Do not forget to print the contents of the underlying Map and from the local properties.
> One example of result would be
> ContextBase[Map[key=value,key=value,...,key=value],key=value,...,key=value]
> where first the map is "toStringed" and then the local properties.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.