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

Investigate better override bridges strategy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7
    • tools
    • unknown
    • generic

      An attempt to fix 6337171 has been made - however the fix failed due to several problems:

      *) Override bridge lead to compatibility issues w.r.t. raw types:

      class A<X> {
         public X m(X x) { return x; }
      }
      class B<X extends B<X>> extends A<X> {}
      class C extends B { }

      public class Test {
          public static void main(String argv[]) {
              C c = new C();
              c.m(new Object());
          }
      }

      *) Interplay between overload resolution and override bridge causes infinite loop when code is executed (6996415)

      Is it possible to fix 6337171 w/o causing the aforementioned problems?

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: