You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "bharat (JIRA)" <ji...@apache.org> on 2016/07/08 00:31:10 UTC
[jira] [Created] (LANG-1249) Exclude Fields on
ReflectionToStringBuilder doesn't work for inner objects
bharat created LANG-1249:
----------------------------
Summary: Exclude Fields on ReflectionToStringBuilder doesn't work for inner objects
Key: LANG-1249
URL: https://issues.apache.org/jira/browse/LANG-1249
Project: Commons Lang
Issue Type: Bug
Reporter: bharat
Class Foo {
String a;
Bar bar;
}
Class Bar {
String b;
}
Foo f = new Foo();
ReflectionToStringBuilder builder = new ReflectionToStringBuilder(f, new RecursiveToStringStyle());
builder.setExcludeFieldNames("bar"); // this works
builder.setExcludeFieldNames("b"); // this doesn't work (It doesn't exclude this field. It only excludes top level fields of Class Foo (f in the example above)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)