[
https://issues.apache.org/jira/browse/LANG-1692?focusedWorklogId=809700&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-809700
]
ASF GitHub Bot logged work on LANG-1692:
----------------------------------------
Author: ASF GitHub Bot
Created on: 17/Sep/22 00:26
Start Date: 17/Sep/22 00:26
Worklog Time Spent: 10m
Work Description: tisonkun commented on code in PR #951:
URL: https://github.com/apache/commons-lang/pull/951#discussion_r973514708
##########
src/main/java/org/apache/commons/lang3/builder/ReflectionDiffBuilder.java:
##########
@@ -110,8 +110,9 @@ private void appendFields(final Class<?> clazz) {
for (final Field field : FieldUtils.getAllFields(clazz)) {
if (accept(field)) {
try {
- diffBuilder.append(field.getName(), readField(field, left,
true),
- readField(field, right, true));
+ Object leftObject = readField(field, left, true);
Review Comment:
Please read the description:
> There's a case as shown in `ReflectionDiffBuilder.java` that if the type
inference results in ambiguity, it may cause compile error.
Issue Time Tracking
-------------------
Worklog Id: (was: 809700)
Time Spent: 50m (was: 40m)
> Cast FieldUtils.readField result to the recipient type
> ------------------------------------------------------
>
> Key: LANG-1692
> URL: https://issues.apache.org/jira/browse/LANG-1692
> Project: Commons Lang
> Issue Type: Task
> Components: lang.reflect.*
> Reporter: Zili Chen
> Priority: Major
> Time Spent: 50m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)