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

Javac rejects a fairly common idiom with raw override and interfaces

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b134
    • CPU:
      unknown
    • OS:
      generic
    • Verification:
      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: