Issue Details (XML | Word | Printable)

Key: NUCCORE-799
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Core

Embedded inheritance code has incorrect use of metadata index, resulting in duplicate member

Created: 15/Jan/12 12:56 PM   Updated: 06/Feb/12 10:13 AM   Resolved: 15/Jan/12 12:57 PM
Component/s: Code Structure, MetaData
Affects Version/s: None
Fix Version/s: 3.0.6


 Description  « Hide
We have the following snippet in EmbeddedMapping

for (int j=0;j<subEmbMmds.length;j++)
{
    if (subEmbMmds[i].getPersistenceModifier() == FieldPersistenceModifier.PERSISTENT)
    {
        ...
    }
}

should use index "j" not "i"!

Andy Jefferson added a comment - 15/Jan/12 12:57 PM
Fixed in SVN trunk

Andy Jefferson made changes - 15/Jan/12 12:57 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Assignee Andy Jefferson [ andy ]
Fix Version/s 3.0.6 [ 11420 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 06/Feb/12 10:13 AM
Status Resolved [ 5 ] Closed [ 6 ]