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

add a warning to detect diamond sites

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 7
    • tools
    • b118
    • unknown
    • generic
    • Verified

      Add a warning that detects diamond sites:

      class Foo<T> {
      Foo(T t) {}
      }

      Foo<String> fs = new Foo<String>(); //compiler should optionally issue a warning here

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: