[jira] [Commented] (LANG-873) Add FieldUtils getDeclaredFields() to return all the fields defined in the given class and super classes

2013-03-13 Thread Gary Gregory (JIRA)

[ 
https://issues.apache.org/jira/browse/LANG-873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13601004#comment-13601004
 ] 

Gary Gregory commented on LANG-873:
---

and your alternative proposal is...?

 Add FieldUtils getDeclaredFields() to return all the fields defined in the 
 given class and super classes
 

 Key: LANG-873
 URL: https://issues.apache.org/jira/browse/LANG-873
 Project: Commons Lang
  Issue Type: Improvement
  Components: lang.reflect.*
Reporter: Emmanuel Bourg
Priority: Minor
 Fix For: 3.2

 Attachments: FieldUtils.diff, FieldUtilsTest.diff


 {{java.lang.Class.getDeclaredFields()}} doesn't return the fields defined by 
 the super classes. I'd like to suggest the addition of a new method in 
 FieldUtils that also returns the inherited fields (including the private 
 fields).
 According to this question on StackOverflow this method would be quite useful:
 http://stackoverflow.com/questions/3567372/access-to-private-inherited-fields-via-reflection-in-java

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (LANG-873) Add FieldUtils getDeclaredFields() to return all the fields defined in the given class and super classes

2013-03-13 Thread Matt Benson (JIRA)

[ 
https://issues.apache.org/jira/browse/LANG-873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13601226#comment-13601226
 ] 

Matt Benson commented on LANG-873:
--

;P  If I'm forced to provide one, I'd say {{#getAllFields()}} would be fairly 
unambiguous.

 Add FieldUtils getDeclaredFields() to return all the fields defined in the 
 given class and super classes
 

 Key: LANG-873
 URL: https://issues.apache.org/jira/browse/LANG-873
 Project: Commons Lang
  Issue Type: Improvement
  Components: lang.reflect.*
Reporter: Emmanuel Bourg
Priority: Minor
 Fix For: 3.2

 Attachments: FieldUtils.diff, FieldUtilsTest.diff


 {{java.lang.Class.getDeclaredFields()}} doesn't return the fields defined by 
 the super classes. I'd like to suggest the addition of a new method in 
 FieldUtils that also returns the inherited fields (including the private 
 fields).
 According to this question on StackOverflow this method would be quite useful:
 http://stackoverflow.com/questions/3567372/access-to-private-inherited-fields-via-reflection-in-java

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (LANG-873) Add FieldUtils getDeclaredFields() to return all the fields defined in the given class and super classes

2013-03-13 Thread nguyen phuc lam (JIRA)

[ 
https://issues.apache.org/jira/browse/LANG-873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13601244#comment-13601244
 ] 

nguyen phuc lam commented on LANG-873:
--

Hi Gary,

Can you check my latest change if it still uses many temporary objects? Your 
implementation is nice but I think it is not very neat. Thanks.

 Add FieldUtils getDeclaredFields() to return all the fields defined in the 
 given class and super classes
 

 Key: LANG-873
 URL: https://issues.apache.org/jira/browse/LANG-873
 Project: Commons Lang
  Issue Type: Improvement
  Components: lang.reflect.*
Reporter: Emmanuel Bourg
Priority: Minor
 Fix For: 3.2

 Attachments: FieldUtils.diff, FieldUtils.diff, FieldUtilsTest.diff


 {{java.lang.Class.getDeclaredFields()}} doesn't return the fields defined by 
 the super classes. I'd like to suggest the addition of a new method in 
 FieldUtils that also returns the inherited fields (including the private 
 fields).
 According to this question on StackOverflow this method would be quite useful:
 http://stackoverflow.com/questions/3567372/access-to-private-inherited-fields-via-reflection-in-java

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira