PropertyUtils.getProperty(bean,name)出现的有关问题
PropertyUtils.getProperty(bean,name)出现的问题at org.apache.commons.beanutils.PropertyUtils.getSimp
PropertyUtils.getProperty(bean,name)出现的问题
at org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.java:1175)
at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:772)
at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801)
当属性换用 xxPoint时便不报错。跟踪测试时发现反射得到的属性是 XPoint, 而非xPoint,这是怎么回事呢?
经查证实是commons-beanutils自身bug
https://issues.apache.org/jira/browse/BEANUTILS-30
https://issues.apache.org/jira/browse/BEANUTILS-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613904#action_12613904