首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

PropertyUtils.getProperty(bean,name)出现的有关问题

2012-12-22 
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

热点排行