RFR: 8216324: GetClassMethods is confused by the presence of default methods in super interfaces

Daniil Titov daniil.x.titov at oracle.com
Mon Jul 20 19:00:39 UTC 2020


Please review change [1] that fixes GetClassMethods behavior in cases if a default method is present in a super interface. Currently for such cases the information GetClassMethods returns for the sub-interface or implementing class incorrectly includes  inherited not default  methods.

The fix ( thanks to Alex for providing this patch) ensures that overpass methods are filtered out  in the returns. The fix also applies a change in the existing test as David suggested in the comments to the issue [2].

Testing: Mach5  tier1-tier3 tests successfully passed.

[1] http://cr.openjdk.java.net/~dtitov/8216324/webrev.01/ 
[2] https://bugs.openjdk.java.net/browse/JDK-8216324 

Thank you,
Daniil




More information about the serviceability-dev mailing list