Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-655

The JDOHelper getObjectIds (Collection) fails with typed collection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • JDO 2 maintenance release 2 (2.2)
    • JDO 3 (3.0)
    • api
    • 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.

      Attachments

        1. jdo-655.patch
          0.6 kB
          Craig L Russell
        2. jdo-655.patch
          6 kB
          Craig L Russell

        Activity

          People

            clr Craig L Russell
            clr Craig L Russell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: