[ 
https://issues.apache.org/jira/browse/LANG-535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764960#action_12764960
 ] 

Henri Yandell commented on LANG-535:
------------------------------------

Difference in behaviour between JDK getSimpleName and Lang getShortClassName:

  JDK returns the class name for an inner class.
  Lang returns the surrounding class name and the class name of the inner class 
as the class name.

Difficult to say which is correct imo. Lang relies on '$' as the inner class 
name separator.

> ClassUtils.getShortClassName() will not work with an array;  it seems to add 
> a semicolon to the end.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: LANG-535
>                 URL: https://issues.apache.org/jira/browse/LANG-535
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: 2.4
>         Environment: Java 1.4.2
>            Reporter: mark juchems
>            Priority: Minor
>             Fix For: 3.0
>
>
> 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));

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

Reply via email to