[ 
https://issues.apache.org/jira/browse/OPENJPA-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard Zowalla resolved OPENJPA-2413.
--------------------------------------
    Resolution: Fixed

Already fixed in an earlier release (a0b872f5c); closing.

> 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.2.3, 2.3.0
>            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 was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to