DefaultMethodTest.testReflectCall fails with new lambda VM

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 8, 8-repo-lambda
    • Component/s: tools
    • b86
    • Not verified

      The VM does not expose default methods (overpasses) anymore in subclasses. This uncovered a subtle bug in a test-ng test where the test invokes thedefault using reflection.

      Sincethe test used to retrieve the overpass, which was defined in a public class, everything went fine. Now the retrieved method is the one in the interface (as it should) - but the interface is package-private and the call fails with IAE (as the classes are loaded by the test with a custom classloader).

            Assignee:
            Maurizio Cimadamore
            Reporter:
            Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: