moremore0812 / cqengine

Automatically exported from code.google.com/p/cqengine
0 stars 0 forks source link

A small bug in uniqueResult() + resolution #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try a query that returns a ResultSet with a single item
2. call uniqueResult() on that query
3. an exception is thrown saying that the ResultSet has multiple items

What is the expected output? What do you see instead?
The single item should be returned

What version of the product are you using? On what operating system?
latest from svn, XP

Please provide any additional information below.

in ResultSet.java, line 58 should be:
O result = iterator.next();
instead of:
O result = iterator().next();

Original issue reported on code.google.com by gil.assa...@gmail.com on 29 Oct 2012 at 1:15

GoogleCodeExporter commented 9 years ago
Thanks, and especially for including the resolution. Fixed in SVN. The next 
release is also in the works, your fix will be included and deployed to maven 
central soon.

Original comment by ni...@npgall.com on 29 Oct 2012 at 1:48

GoogleCodeExporter commented 9 years ago

Original comment by ni...@npgall.com on 29 Oct 2012 at 1:49

GoogleCodeExporter commented 9 years ago
Fixed in version 1.0.0. This is available in the Downloads tab, and is queued 
for sync with Maven central, it should appear there in a few hours.

Original comment by ni...@npgall.com on 29 Oct 2012 at 10:00