Details
-
Bug
-
Resolution: Fixed
-
P4
-
8, 8-repo-lambda
-
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).
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).