[
https://issues.apache.org/jira/browse/LANG-1612?focusedWorklogId=511990&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-511990
]
ASF GitHub Bot logged work on LANG-1612:
----------------------------------------
Author: ASF GitHub Bot
Created on: 15/Nov/20 17:25
Start Date: 15/Nov/20 17:25
Worklog Time Spent: 10m
Work Description: garydgregory commented on pull request #640:
URL: https://github.com/apache/commons-lang/pull/640#issuecomment-727605498
Hi @tongxin97
Thank you for your PR.
There is a simpler solution: sorting, see git master
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 511990)
Time Spent: 0.5h (was: 20m)
> testGetAllFields and testGetFieldsWithAnnotation sometimes fail
> ---------------------------------------------------------------
>
> Key: LANG-1612
> URL: https://issues.apache.org/jira/browse/LANG-1612
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.reflect.*
> Affects Versions: 3.11
> Reporter: XinT
> Priority: Minor
> Labels: pull-request-available, test
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> The testGetAllFields() and testGetFieldsWithAnnotation() functions in
> FieldUtilsTest are flaky because they contain assertArraysEquals() on two
> arrays that may not be exactly equal. The arrays are guaranteed to contain
> the exact same elements, but the elements may be ordered differently, causing
> the assertion to sometimes fail.
> More specifically, FieldUtils.getAllFields() does not necessarily return an
> array in the order that the current tests assume.
> Github PR: https://github.com/apache/commons-lang/pull/640
--
This message was sent by Atlassian Jira
(v8.3.4#803005)