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);
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: