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

Javac rejects a fairly common idiom with raw override and interfaces

XMLWordPrintable

    • b134
    • unknown
    • generic
    • Verified

      This program doesn't compile (since the fix for ...)

      import java.util.*;

      interface A {
      int get(List<String> l);
      }

      interface B {
      int get(List<Integer> l);
      }

      interface C extends A, B { // Don't forget the extends clause!
      int get(List l);
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: