[
https://issues.apache.org/jira/browse/DBUTILS-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17692474#comment-17692474
]
Carl Franklin Hall commented on DBUTILS-150:
--------------------------------------------
Ah! You were very close with IndexedPropertyDescriptor. This descriptor type is
correctly collected by Introspector.getBeanInfo. However, whenever
getReadMethod() or getWriteMethod() is called on IndexedPropertyDescriptor,
they return null. Instead, getIndexed(Read|Write)Method() should be called. I'm
checking through BeanProcessor for these references and checking the
implications of adding checks for IndexedPropertyDescriptor.
> BeanProcessor populateBean does not work when PropertyDescriptor is of type
> ----------------------------------------------------------------------------
>
> Key: DBUTILS-150
> URL: https://issues.apache.org/jira/browse/DBUTILS-150
> Project: Commons DbUtils
> Issue Type: Improvement
> Affects Versions: 1.7
> Reporter: Miguel Costa
> Assignee: Carl Franklin Hall
> Priority: Major
> Fix For: 1.8
>
> Attachments: 2023-02-14 10_14_48-Window.png, 2023-02-14
> 10_17_28-Window.png, TestCopy.java
>
>
> I've been using DB utils for a while to help me handle some custom beans
> (Protobufs)
> Anyway while debugging an issue I'm facing I noticed that the function
> BeanProcessor.populateBean is not able to handle
> PropertyDescriptor when their class is IndexedPropertyDescriptor instead of a
> normal PropertyDescriptor.
> IndexedPropertyDescriptor extends PropertyDescriptor so I would expect this
> to work without any issue, but currently it does not
>
> I can provide a PR for review with my best approach for it
--
This message was sent by Atlassian Jira
(v8.20.10#820010)