db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig L Russell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JDO-655) The JDOHelper getObjectIds (Collection) fails with typed collection
Date Fri, 30 Apr 2010 03:14:53 GMT

     [ https://issues.apache.org/jira/browse/JDO-655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Craig L Russell updated JDO-655:
--------------------------------

    Attachment: jdo-655.patch
                jdo-655.patch

Please review this patch. 

The tck patch passes with the latest DN snapshot.

> 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: api2
>    Affects Versions: JDO 2 maintenance release 2
>            Reporter: Craig L Russell
>            Assignee: Craig L Russell
>            Priority: Minor
>         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.


Mime
View raw message