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

DefaultMethodsTest.java fails expecting AbstractMethodError

XMLWordPrintable

      Recent changes to in hotspot to support private methods in interfaces resulted in a specified behavioural change such that DefaultMethodsTest previously expected AbstractMethodError but should now expect IncompatibleClassChangeError or successful completion. Additionally, one test should still expect AbstractMethodError but IncompatibleClassChangeError is now incorrectly being thrown.

      The JDK version of this test (to which this bug initially applied) has been removed. This bug now applies to the matching version in the langtools repo: tools/javac/lambdaShapes/org/openjdk/tests/vm/DefaultMethodsTest.java.

      Tests in the lambda repo, jdk/lambda/vm/FDSeparateCompilationTest.java, are also affected.

      The relevant tests are ---

      testAmbiguousReabstract
          current test expects: AME
          new spec: successful invocation
          current behavior: ICCE

      testConflict
          current test expects: AME
          new spec: ICCE
          current behavior: ICCE

      testSuperConflict
          current test expects: AME
          new spec: ICCE
          current behavior: invocation

      testSuperDisqual
          current test expects: AME
          new spec: successful invocation
          current behavior: invocation

      testSuperGenericDisqual
          current test expects: AME
          new spec: successful invocation
          current behavior: invocation

      testSuperNull
          current test expects: AME
          new spec: AME
          current behavior: ICCE


        There are no Sub-Tasks for this issue.

            rfield Robert Field (Inactive)
            psandoz Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: