You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Jody Grassel (JIRA)" <ji...@apache.org> on 2013/07/24 20:07:48 UTC

[jira] [Created] (OPENJPA-2413) FetchPlan.clearFetchGroups() does not retain "default" in list of active Fetch Groups.

Jody Grassel created OPENJPA-2413:
-------------------------------------

             Summary: FetchPlan.clearFetchGroups() does not retain "default" in list of active Fetch Groups.
                 Key: OPENJPA-2413
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2413
             Project: OpenJPA
          Issue Type: Bug
          Components: kernel
    Affects Versions: 2.2.2, 2.3.0, 2.2.3
            Reporter: Jody Grassel
            Assignee: Jody Grassel
            Priority: Minor


The JavaDoc for FetchPlan defines the following contract:

    /**
     * Clears the set of fetch group names to use wen loading
     * data. After this operation is invoked, only those fields in
     * the default fetch group (and any requested field) will be
     * loaded when loading an object.
     */
    public FetchPlan clearFetchGroups();

After calling clearFetchGroups() the default fetch group is indeed active, however getFetchGroups() returns an empty Collection, which is clearly not correct.  This can deceive application developers into thinking that there is no active Fetch Groups (it, everything is lazy loaded) if this Collection's contents is relied upon.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira