Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-535

ClassUtils.getShortClassName() will not work with an array; it seems to add a semicolon to the end.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4
    • 2.5
    • lang.*
    • None
    • Java 1.4.2

    Description

      A semicolon is introduced into the class name at the end for all arrays...

      String sArray[] = new String[2];
      sArray[0] = "mark";
      sArray[1] = "is cool";
      String simpleString = "chris";

      assertEquals("String", ClassUtils.getShortClassName(simpleString, null));
      assertEquals("String;", ClassUtils.getShortClassName(sArray, null));

      Attachments

        1. LANG-535.patch
          6 kB
          Henri Yandell

        Activity

          People

            Unassigned Unassigned
            mjuchems mark juchems
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: