db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Bouschen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JDO-655) The JDOHelper getObjectIds (Collection) fails with typed collection
Date Fri, 07 May 2010 16:25:49 GMT

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

Michael Bouschen commented on JDO-655:
--------------------------------------

Both patches look good!

> 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