8047338: javac is not correctly filtering non-members methods to obtain the function descriptorReviewed-by: mcimadamore