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] Created: (JDO-655) The JDOHelper getObjectIds (Collection) fails with typed collection
Date Fri, 30 Apr 2010 02:56:54 GMT
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


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