On Wed, 19 Jun 2024 18:57:43 GMT, Jorn Vernee <jver...@openjdk.org> wrote:
>> I can do that, but I think this will always be a bit awkward since these >> types don't have a common super type that exposes the needed information. > >> these types don't have a common super type that exposes the needed >> information > > No wait, they actually do :) That's just `MemberRefEntry`. I was able to eliminate this method entirely, now the caller just creates a `MethodRef` and passes that to the other `isRestrictedMethod` overload. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/19774#discussion_r1646691228