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

Warning for Comparable<Foo> where Foo doesn't implement comparable

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Rejected
    • Icon: P4 P4
    • None
    • 7
    • tools
    • generic
    • generic

      When making a class implement the generic version of the Comparable interaface, using a type instantiation that is not itself Comparable (e.g. Object) is often the sign of a API design error. This might be appropriate as a lint warning.

            Unassigned Unassigned
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: