Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5073707

Some generifications overly restrictive

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 5.0
    • other-libs
    • b59
    • generic
    • generic

      While fixing 5054615 et al. I noticed two methods whose generic types are
      overly restrictive:

          java.security.cert.X509CRLSelector.setIssuerNames(Collection<Object>)
          java.text.AttributedString.addAttributes(Map<Attribute,Object>, int, int)

      The Object types in these signatures should be replaced with a wildcard so that
      collections and maps of more specific types can be used.

      -- ###@###.### 2004/7/13

            mr Mark Reinhold
            mr Mark Reinhold
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: