You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "yunghoyi (JIRA)" <ji...@apache.org> on 2015/05/30 03:01:17 UTC
[jira] [Created] (LANG-1140) lang.reflect.FieldUtils.getAllFields()
returns false result
yunghoyi created LANG-1140:
------------------------------
Summary: 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: 3.4
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)