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

AbstractMethodError expected rather than IncompatibleClassChangeError for invocation on abstract method on iface

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • hs25
    • None
    • hotspot

      Given the following (indirectly compiled in such a way to avoid errors):

      interface J { int m(); }
      interface I extends J { default int m() { return J.super.m(); } }
      class C implements I {}

      C c = new C(); c.m(); // expected: AME; actual: ICCE

      An AbstractMethodError is expected but due to recent changes in Hotspot for the support of private methods this has changed to an IncompatibleClassChangeError.

            acorn Karen Kinnear (Inactive)
            psandoz Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: