commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yunghoyi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LANG-1140) lang.reflect.FieldUtils.getAllFields() returns false result
Date Sat, 30 May 2015 01:04:18 GMT

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

yunghoyi updated LANG-1140:
---------------------------
    Environment: 
Linux ubuntu 3.16.0-38-generic x86_64 GNU/Linux
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.10.2)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)

  was:
Linux ubuntu 3.16.0-38-generic x86_64 GNU/Linux



> 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
> java version "1.7.0_79"
> OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.10.2)
> OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
>            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)

Mime
View raw message