contextshuffling created LANG-1514:
--------------------------------------

             Summary: Test may fail due to a different iteration order
                 Key: LANG-1514
                 URL: https://issues.apache.org/jira/browse/LANG-1514
             Project: Commons Lang
          Issue Type: Bug
          Components: lang.reflect.*
            Reporter: contextshuffling


Tests `testGetAllFieldsList` in `FieldUtilsTest` check if method `getAllFields` 
returns correct fields of a certain class.  `getAllFields` depends on 
`java.lang.class.getDeclaredFields` to use reflection to get the fields. 
However, `java.lang.class.getDeclaredFields` does not guarantee any specific 
order of fields returned. Therefore, tests will fail if the order returned by 
the API is different.




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to