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

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

XMLWordPrintable

    • b58
    • generic
    • generic

        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.

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

                Created:
                Updated:
                Resolved: