]
Mircea Markus updated ISPN-2879:
--------------------------------
Fix Version/s: 5.3.0.Final
(was: 5.3.0.CR1)
Have ResultIterator implement AutoCloseable
--------------------------------------------
Key: ISPN-2879
URL:
https://issues.jboss.org/browse/ISPN-2879
Project: Infinispan
Issue Type: Enhancement
Components: Querying
Reporter: Sanne Grinovero
Assignee: Sanne Grinovero
Priority: Minor
Labels: stable_embedded_query
Fix For: 5.3.0.Final
Assuming we'll baseline on Java7, it would be very nice to have the following code
valid and changing the default Fetch to LAZY:
{code}
Query query = queryBuilder.all().createQuery();
CacheQuery cacheQuery = searchManager.getQuery(query, Bean.class);
for (Object object : cacheQuery) {
...
}{code}
the problem is the implicit iterable opened needs to be closed.
see also ISPN-2874.
--
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: