brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BROOKLYN-271) ConfigKey card shows object hashCode of default values
Date Fri, 20 May 2016 09:59:12 GMT

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

ASF GitHub Bot commented on BROOKLYN-271:
-----------------------------------------

GitHub user kiuby88 opened a pull request:

    https://github.com/apache/brooklyn-server/pull/146

    Avoiding object hashcode in entities' toString.

    Fixing [BROOKLYN-271](https://issues.apache.org/jira/browse/BROOKLYN-271)
    Avoiding object references in catalog ConfigKey cards, for example:
    
    <img width="1036" alt="captura de pantalla 2016-05-19 a la s 17 46 04" src="https://cloud.githubusercontent.com/assets/3704424/15399867/992624fa-1de9-11e6-9e21-b9efe659ab1e.png">
    
    Last picture shows that default value of `softwareProcess.lifecycleTasks` config key does
not contain the object hashcode `@XXXXX`. Then, objects `toString` methods are modified to
avoid the hashcode.

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

    $ git pull https://github.com/kiuby88/brooklyn-server BROOKLYN-271

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

    https://github.com/apache/brooklyn-server/pull/146.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 #146
    
----
commit 5e1517b4c99f99c5368936a9f00ea180d0972776
Author: Kiuby88 <kiuby88.programming@gmail.com>
Date:   2016-05-20T09:56:59Z

    Avoiding object hashcode in entities' toString.

----


> ConfigKey card shows object hashCode of default values
> ------------------------------------------------------
>
>                 Key: BROOKLYN-271
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-271
>             Project: Brooklyn
>          Issue Type: Documentation
>            Reporter: Jose Carrasco
>            Priority: Minor
>
> ConfigKey cards of Entities show the object references in Brooklyn Catalog when a default
value is a object. Take a look to the following screenshot:
> !https://www.dropbox.com/s/rav70zzleyhnd4q/objectId.png?dl=1!
> As you can see the default value is composed by: 
> {code}
>     getClass().getName() + '@' + Integer.toHexString(hashCode())
> {code}
> Probably just class name should be shown here. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message