[ 
https://issues.apache.org/jira/browse/JDO-760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15895724#comment-15895724
 ] 

Tilmann Zäschke commented on JDO-760:
-------------------------------------

I replaced all usage of {{Collection}} with {{List}} in sections 14.3 and 14.10.
In 14.10 I added an explanatory remark that {{executeList()}} is equivalent to 
{{(List) execute()}}.

In 14.6.1 I added "Only iterator(), size() and isEmpty() are required to be 
implemented for result lists. All other List methods may throw an 
UnsupportedOperationException."

> Spec update regarding whether Query.execute() returns List or Collection
> ------------------------------------------------------------------------
>
>                 Key: JDO-760
>                 URL: https://issues.apache.org/jira/browse/JDO-760
>             Project: JDO
>          Issue Type: Improvement
>          Components: specification
>    Affects Versions: JDO 3.1
>            Reporter: Tilmann Zäschke
>            Assignee: Tilmann Zäschke
>            Priority: Trivial
>              Labels: documentation
>             Fix For: JDO 3.2
>
>
> The spec says in Section 14.6.1 that Query.execute() returns an unmodifiable 
> {{List}}.
> However, the text in Section 14.3 ('uniquenes'), Section 14.10.2 and all 
> examples in Section 14.10 suggest that a {{Collection}} is returned. I 
> suggest updating the spec to refer to {{List}} in the listed sections.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to