DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
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

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"!

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 15/Jan/12 12:57 PM
Fixed in SVN trunk