DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus API JDO

Typesafe query returning single field gives ClassCastException in casting to Object[]

Created: 24/Jun/12 10:01 AM   Updated: 09/Jul/12 12:38 PM   Resolved: 24/Jun/12 10:10 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 3.1.0.m3

 Description  « Hide
The internal query result will be Object or List<Object> if there is a single result. The typesafe API assumes this will be Object[] or List<Object[]>

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 24/Jun/12 10:10 AM
SVN trunk adds two more methods on TypesafeQuery where we have a single result expression