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

DefaultMethodTest.testReflectCall fails with new lambda VM

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • 8, 8-repo-lambda
    • tools
    • b86
    • Not verified

    Description

      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).

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: