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

yunghoyi updated LANG-1140:
---------------------------
    Fix Version/s:     (was: 3.4)
                   Patch Needed

> lang.reflect.FieldUtils.getAllFields() returns false result
> -----------------------------------------------------------
>
>                 Key: LANG-1140
>                 URL: https://issues.apache.org/jira/browse/LANG-1140
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.reflect.*
>    Affects Versions: 3.5
>         Environment: Linux ubuntu 3.16.0-38-generic x86_64 GNU/Linux
>            Reporter: yunghoyi
>             Fix For: Patch Needed
>
>
> JUnit test returns errors below.
>    FieldUtilsTest.testGetAllFields:154 expected:<5> but was:<7>
>    FieldUtilsTest.testGetAllFieldsList:168 expected:<5> but was:<7>
> Both methods has a parameter 
> "FieldUtils.getAllFields(PublicChild.class).length ."
> PublicChild which has 1 field extends Parent which has 4 fields.
> I made a dummy class which contains no field, the result of getAllFields() 
> was 1, not 0.
> Lang-3.4 doesn't have this problem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to