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

JVM: inheriting abstract and default should invoke default -- currently IncompatibleClassChangeError

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: hs25
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b58
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        DefaultMethodsTest.testAmbiguousReabstract fails.

             interface I { int m(); }
             interface J { default int m() { return 88; } }
             class C implements I, J {}
             
             C c = new C(); c.m() should == 88 instead ICCE

        Note: this test in DefaultMethodsTest has been updated to match the spec.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  acorn Karen Kinnear (Inactive)
                  Reporter:
                  rfield Robert Field
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: