RFR: 8009411 : getMethods should not inherit static methods from interfaces

Joel Borggrén-Franck joel.franck at oracle.com
Mon Sep 9 17:27:10 UTC 2013

On 9 sep 2013, at 19:00, Joel Borggrén-Franck <joel.franck at oracle.com> wrote:

> The issue is that since we added static methods to interfaces those have erroneously been reflected in getMethods of implementing classes. This fix filters out static interface methods from superinterfaces when adding methods. I have also added a note to the javadoc for both getMembers and getDeclaredMembers pointing this out (though it is implied from JLS). 

Correcting myself, I added a note to getMethods() and getMethod(String name …)

getDeclaredMethod{s} shouldn't need a note.


More information about the core-libs-dev mailing list