Issue Details (XML | Word | Printable)

Key: NUCJAVAFIVE-15
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Dan Leary
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
DataNucleus Java5 (ARCHIVED)

Nested fetch-group declared with annotations does not correctly assemble fetch group member fields

Created: 27/Jun/08 09:32 PM   Updated: 23/Sep/08 04:10 PM   Resolved: 27/Aug/08 08:22 AM
Component/s: JDO
Affects Version/s: 1.0.0.m2
Fix Version/s: 1.0.0.final

File Attachments: 1. Zip Archive testcase.zip (2 kB)

Environment:
openSUSE 10.3 (X86-64)
Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b19, mixed mode)
Nightly 1.0-SNAPSHOT jars from 2008-06-27

Datastore: Oracle


 Description  « Hide
Nested fetch-groups specified with annotation metadata don't work properly.
E.g. with metadata like:

@FetchGroups({
      @FetchGroup(name="simple",
members={
@Persistent(name="_b")
}),
@FetchGroup(name="nested",
fetchGroups={"simple"},
members={})
})

Using DetachAllOnCommit=true and fetching with the "nested" group yields:

javax.jdo.JDODetachedFieldAccessException: You have just attempted to access field "_b" yet this field was not detached when you detached the object. Either dont access this field, or detach it when detaching the object.

The equivalent metadata declared via xml works fine.


Sort Order: Ascending order - Click to sort in descending order
Dan Leary added a comment - 27/Jun/08 09:32 PM
Attaching testcase.

Andy Jefferson added a comment - 27/Aug/08 08:22 AM
Doesn't fail for me with latest code. Presumably some issue was fixed in previous releases