Share

Dozer

Tracker: Bugs

5 Bug in ReflectionUtils.getInterfacePropertyDescriptors() - ID: 2013632
Last Update: Comment added ( buzdin )

I have no clue what the method does, but Eclipse tells me that the variable
j declared in the following line is never used:

for (int j = 0; i < superInterfacePropertyDescriptors.size(); i++)

Something got mixed up with i and j.


Christopher Sahnwaldt ( chrisahn ) - 2008-07-08 16:31

5

Closed

Fixed

dmitry (lv)

None

Dozer v.4.3

Public


Comments ( 2 )

Date: 2008-10-22 17:40
Sender: buzdinProject Admin

Looks like a bug to me. Fixed, will be included in 4.3 release soon.


Date: 2008-07-22 10:11
Sender: bjoernkueng


This loop should actually use the 'j' variable for iteration and not 'i'
from the outer loop. To fix this also correct the variable name on the next
line:

PropertyDescriptor superPropDescriptor = (PropertyDescriptor)
superInterfacePropertyDescriptors.get(j);

The problem now is that if an interface extends more than one interface,
you don't get all PropertyDescriptors of the second interface. The first
one is skipped because 'i' already has the value 1 and ignores the
PropertyDescriptor on index 0.


Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Open 2008-10-22 17:39 buzdin
resolution_id None 2008-10-22 17:39 buzdin
artifact_group_id None 2008-10-22 17:39 buzdin
close_date - 2008-10-22 17:39 buzdin
assigned_to nobody 2008-10-22 17:24 buzdin