Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
JDO 2 maintenance release 2 (2.2)
-
None
Description
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.