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

Javac rejects a fairly common idiom with raw override and interfaces

    XMLWordPrintable

Details

    • b134
    • unknown
    • generic
    • Verified

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: