Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317738 - EJBQueryImpl executes readObjectQuery twice
Summary: EJBQueryImpl executes readObjectQuery twice
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-23 14:49 EDT by Doug Clarke CLA
Modified: 2022-06-09 10:18 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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