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

Investigate better override bridges strategy

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 8
    • Component/s: tools
    • Subcomponent:
    • CPU:
      unknown
    • OS:
      generic

      Description

      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?

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: