Bug 990205 - LdapGWTServiceImpl.java:96, DMI_INVOKING_TOSTRING_ON_ARRAY, Priority: High
LdapGWTServiceImpl.java:96, DMI_INVOKING_TOSTRING_ON_ARRAY, Priority: High
Status: NEW
Product: RHQ Project
Classification: Other
Component: Core UI (Show other bugs)
4.9
Unspecified Unspecified
unspecified Severity medium (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-30 10:49 EDT by Mike Foley
Modified: 2013-07-30 10:49 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Mike Foley 2013-07-30 10:49:35 EDT
Description of problem:  
LdapGWTServiceImpl.java:96, DMI_INVOKING_TOSTRING_ON_ARRAY, Priority: High




Additional info:


LdapGWTServiceImpl.java:96, DMI_INVOKING_TOSTRING_ON_ARRAY, Priority: High


LdapGWTServiceImpl.java:96, DMI_INVOKING_TOSTRING_ON_ARRAY, Priority: High
Invocation of toString on groupIndices in org.rhq.enterprise.gui.coregui.server.gwt.LdapGWTServiceImpl.setLdapGroupsForRole(int, List)

The code invokes toString on an array, which will generate a fairly useless result such as [C@16f0472. Consider using Arrays.toString to convert the array into a readable String that gives the contents of the array. See Programming Puzzlers, chapter 3, puzzle 12.

At the July 30, 2013 static code analysis review meeting, Mike T stated he would like to address this

Note You need to log in before you can comment on or make changes to this bug.