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.

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

                Created:
                Updated:
                Resolved: