You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (JIRA)" <ji...@apache.org> on 2013/10/19 20:32:42 UTC

[jira] [Updated] (LANG-905) Compare between arrays

     [ https://issues.apache.org/jira/browse/LANG-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Neidhart updated LANG-905:
---------------------------------

    Attachment: LANG-905.patch

Attached a patch + unit test to fix the problem.

> Compare between arrays
> ----------------------
>
>                 Key: LANG-905
>                 URL: https://issues.apache.org/jira/browse/LANG-905
>             Project: Commons Lang
>          Issue Type: Bug
>            Reporter: E
>              Labels: patch
>         Attachments: LANG-905.patch
>
>
> when comparing 2 arrays, EqualsBuilder returns true even if they contain different elements.
> example:
> 	        Object[] o1 = new Object[1];
> 		o1[0]="Hello";
> 		
> 		Object[] o2 = new Object[1];
> 		o2[0]="Bye";
> 		
> 		System.out.println(EqualsBuilder.reflectionEquals(o1, o2, true));



--
This message was sent by Atlassian JIRA
(v6.1#6144)