Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 317738

Summary: EJBQueryImpl executes readObjectQuery twice
Product: z_Archived Reporter: Doug Clarke <douglas.clarke>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.orm-inbox, gordon.yorke
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Doug Clarke CLA 2010-06-23 14:49:18 EDT
Starting at line 704 in version 2.1.0

            } else if (query.isReadObjectQuery()) {
                List resultList = new ArrayList();
                Object result = executeReadQuery();
                if (result != null) {
                    resultList.add(executeReadQuery());
                }
                return resultList;

I believe the result should be added to the resultList instead of re-executing the query.

This only occurs when using a native ReadObjectQuery and calling getResultList which is an odd combination
Comment 1 Gordon Yorke CLA 2010-06-23 15:05:00 EDT
Insignificant bug fix.  Code checked in.
http://fisheye2.atlassian.com/changelog/eclipselink/?cs=7667
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:16:06 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:18:45 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink