generics: erasure clash not detected.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 5.0
    • Affects Version/s: 1.4.1
    • Component/s: tools
    • tiger
    • generic
    • solaris_8

      JSR14 prototype javac fails to reject the following incorrect program.

      class C<A> { A id ( A x) { return x; } }
      interface I<A> { A id(A x); }
      class D extends C<String> implements I<Integer> {
          public String id(String x) { return x; }
          public Integer id(Integer x) { return x; }
      }

            Assignee:
            Neal Gafter (Inactive)
            Reporter:
            Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: