[
https://issues.apache.org/jira/browse/JDO-655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Craig L Russell resolved JDO-655.
---------------------------------
Fix Version/s: JDO 3
Resolution: Fixed
svn commit -m "JDO-655 Allow typed collections for JDOHelper.getObjectIds"
api2/src/java/javax/jdo/JDOHelper.java
tck2/src/java/org/apache/jdo/tck/api/jdohelper/GetObjectIds.java
Sending api2/src/java/javax/jdo/JDOHelper.java
Sending tck2/src/java/org/apache/jdo/tck/api/jdohelper/GetObjectIds.java
Transmitting file data ..
Committed revision 943557.
> The JDOHelper getObjectIds (Collection) fails with typed collection
> -------------------------------------------------------------------
>
> Key: JDO-655
> URL: https://issues.apache.org/jira/browse/JDO-655
> Project: JDO
> Issue Type: Bug
> Components: api
> Affects Versions: JDO 2 maintenance release 2
> Reporter: Craig L Russell
> Assignee: Craig L Russell
> Priority: Minor
> Fix For: JDO 3
>
> Attachments: jdo-655.patch, jdo-655.patch
>
>
> The getObjectIds (Collection<Object>) fails when a
> Collection<AnythingButObject> is passed as the parameter. The result is:
> The method getObjectIds(Collection<Object>) in the type JDOHelper is not
> applicable for the arguments (List<PCPointSingleFieldInteger>)
> The method parameter should be redefined as Collection<?> since any
> collection, whether typed or untyped, will do. The elements of the Collection
> do not need to have any specific type, which was the original intent of the
> method. The intent was not captured by the signature of the method.
> Thanks to Marco Schultz for reporting this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.