[
https://issues.apache.org/jira/browse/LANG-1612?focusedWorklogId=511992&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-511992
]
ASF GitHub Bot logged work on LANG-1612:
----------------------------------------
Author: ASF GitHub Bot
Created on: 15/Nov/20 17:32
Start Date: 15/Nov/20 17:32
Worklog Time Spent: 10m
Work Description: tongxin97 commented on pull request #640:
URL: https://github.com/apache/commons-lang/pull/640#issuecomment-727606532
Ah I see. I didn't do it this way since `Field` is not comparable. I saw
your workaround with the `sort()` method. Thanks for keeping me updated.
----------------------------------------------------------------
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: 511992)
Time Spent: 40m (was: 0.5h)
> 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
> Fix For: 3.12
>
> Time Spent: 40m
> 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)