Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7099088

FindBugs: Invocation of toString on an array

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • jt4.4.1
    • jt4.4.1
    • tools
    • b06
    • b06
    • generic
    • generic
    • Verified

    Description

      Invocation of toString on an array

      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.

      Details:

      ====================================
      Invocation of toString on args in com.sun.interview.Interview.getI18NString(String, Object[])


      In file Interview.java, line 2588
      In class com.sun.interview.Interview
      In method com.sun.interview.Interview.getI18NString(String, Object[])
      Local variable named args
      At Interview.java:[line 2588]

      ====================================
      Invocation of toString on path in com.sun.javatest.httpd.httpURL.reassemblePath(String[], boolean, boolean)


      In file httpURL.java, line 196
      In class com.sun.javatest.httpd.httpURL
      In method com.sun.javatest.httpd.httpURL.reassemblePath(String[], boolean, boolean)
      Local variable named path
      At httpURL.java:[line 196]

      ====================================
      Invocation of toString on objs in com.sun.javatest.TestResultTable.getIterator(String[], TestFilter[])


      In file TestResultTable.java, line 981
      In class com.sun.javatest.TestResultTable
      In method com.sun.javatest.TestResultTable.getIterator(String[], TestFilter[])
      Local variable named objs
      At TestResultTable.java:[line 981]

      ====================================
      Invocation of toString on args in com.sun.javatest.util.I18NResourceBundle.getString(String, Object[])


      In file I18NResourceBundle.java, line 88
      In class com.sun.javatest.util.I18NResourceBundle
      In method com.sun.javatest.util.I18NResourceBundle.getString(String, Object[])
      Local variable named args
      At I18NResourceBundle.java:[line 88]

      Attachments

        Activity

          People

            ersh Mikhail Ershov (Inactive)
            ersh Mikhail Ershov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: