| Summary: | getGroupList() returned null instead of an empty list when no grouping expressions has been specified | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Stephen DiMilla <stephen.dimilla> | ||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | blocker | ||||||
| Priority: | P3 | CC: | lance.andersen, stephen.dimilla, tom.ware | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | Macintosh | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Updating target milestone. Created attachment 226644 [details]
proposed fix
Fix checked in - lazy initialization of groupBy Reviewed by Chris Delahunt Added test to JPA 2.1 Query test suite Tested with JPA LRG The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
Build Identifier: eclipselink-2.3.0.v20110604-r9504 Execute the following code and getGrouList() will return a null instead of an empty list as specified by the javadoc CriteriaQuery<String> cquery = qbuilder.createQuery(String.class); Root<Customer> customer = cquery.from(Customer.class); EntityType<Customer> Customer_ = customer.getModel(); EmbeddableType<Country> Country_ = mm.embeddable(Country.class); cquery.select(customer.get(Customer_.getSingularAttribute("country", Country.class)).get(Country_.getSingularAttribute("code", String.class))); List<Expression<?>> groupList = cquery.getGroupList(); if (groupList == null) { System.out.println("getGroupList returned null instead of empty list when no groupby expressions have been specified"); } Reproducible: Always